rootpy.plotting.Graph¶
-
class
rootpy.plotting.
Graph
[source]¶ Returns a Graph object which inherits from the associated ROOT.TGraph* class (TGraph, TGraphErrors, TGraphAsymmErrors)
-
Append
(other)¶ Append points from another graph
-
Crop
(x1, x2, copy=False)¶ Remove points which lie outside of [x1, x2]. If x1 and/or x2 is below/above the current lowest/highest x-coordinates, additional points are added to the graph using a linear interpolation
-
class
GraphPoint
(graph, idx)¶ Class similar to BinProxy for histograms, useful for getting single point information
-
class
Measurement
(graph, axis, idx)¶ Generalized measusement class, each graph point has one for each axis
-
x
¶ returns the x coordinate
-
y
¶ returns the y coordinate
-
z
¶ returns the z coordinate
-
class
-
Integrate
()¶ Integrate using the trapazoidal method
-
Invert
(copy=False)¶ Interchange the x and y coordinates of all points
-
Reverse
(copy=False)¶ Reverse the order of the points
-
Scale
(value, copy=False)¶ Scale the graph vertically by value
-
Shift
(value, copy=False)¶ Shift the graph left or right by value
-
Stretch
(value, copy=False)¶ Stretch the graph horizontally by a factor of value
-