Logo ROOT   6.08/07
Reference Guide
TGraph.h
Go to the documentation of this file.
1 // @(#)root/hist:$Id$
2 // Author: Rene Brun, Olivier Couet 12/12/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGraph
13 #define ROOT_TGraph
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGraph //
19 // //
20 // Graph graphics class. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TNamed
25 #include "TNamed.h"
26 #endif
27 #ifndef ROOT_TAttLine
28 #include "TAttLine.h"
29 #endif
30 #ifndef ROOT_TAttFill
31 #include "TAttFill.h"
32 #endif
33 #ifndef ROOT_TAttMarker
34 #include "TAttMarker.h"
35 #endif
36 #ifndef ROOT_TVectorFfwd
37 #include "TVectorFfwd.h"
38 #endif
39 #ifndef ROOT_TVectorDfwd
40 #include "TVectorDfwd.h"
41 #endif
42 
43 class TBrowser;
44 class TAxis;
45 class TH1;
46 class TH1F;
47 class TCollection;
48 class TF1;
49 class TSpline;
50 
51 #include "TFitResultPtr.h"
52 
53 class TGraph : public TNamed, public TAttLine, public TAttFill, public TAttMarker {
54 
55 protected:
56 
57  Int_t fMaxSize; //!Current dimension of arrays fX and fY
58  Int_t fNpoints; //Number of points <= fMaxSize
59  Double_t *fX; //[fNpoints] array of X points
60  Double_t *fY; //[fNpoints] array of Y points
61  TList *fFunctions; //Pointer to list of functions (fits and user)
62  TH1F *fHistogram; //Pointer to histogram used for drawing axis
63  Double_t fMinimum; //Minimum value for plotting along y
64  Double_t fMaximum; //Maximum value for plotting along y
65 
66  static void SwapValues(Double_t* arr, Int_t pos1, Int_t pos2);
67  virtual void SwapPoints(Int_t pos1, Int_t pos2);
68 
69  virtual Double_t **Allocate(Int_t newsize);
70  Double_t **AllocateArrays(Int_t Narrays, Int_t arraySize);
71  virtual Bool_t CopyPoints(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin);
72  virtual void CopyAndRelease(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin);
74  Double_t **ExpandAndCopy(Int_t size, Int_t iend);
75  virtual void FillZero(Int_t begin, Int_t end, Bool_t from_ctor = kTRUE);
76  Double_t **ShrinkAndCopy(Int_t size, Int_t iend);
77  virtual Bool_t DoMerge(const TGraph * g);
78 
79 public:
80  // TGraph status bits
81  enum {
82  kClipFrame = BIT(10), // clip to the frame boundary
83  kNotEditable = BIT(18), // bit set if graph is non editable
84  kIsSortedX = BIT(19) // graph is sorted in X points
85  };
86 
87  TGraph();
88  TGraph(Int_t n);
89  TGraph(Int_t n, const Int_t *x, const Int_t *y);
90  TGraph(Int_t n, const Float_t *x, const Float_t *y);
91  TGraph(Int_t n, const Double_t *x, const Double_t *y);
92  TGraph(const TGraph &gr);
93  TGraph& operator=(const TGraph&);
94  TGraph(const TVectorF &vx, const TVectorF &vy);
95  TGraph(const TVectorD &vx, const TVectorD &vy);
96  TGraph(const TH1 *h);
97  TGraph(const TF1 *f, Option_t *option="");
98  TGraph(const char *filename, const char *format="%lg %lg", Option_t *option="");
99  virtual ~TGraph();
100 
101  virtual void Apply(TF1 *f);
102  virtual void Browse(TBrowser *b);
103  virtual Double_t Chisquare(TF1 *f1, Option_t *option="") const;
104  static Bool_t CompareArg(const TGraph* gr, Int_t left, Int_t right);
105  static Bool_t CompareX(const TGraph* gr, Int_t left, Int_t right);
106  static Bool_t CompareY(const TGraph* gr, Int_t left, Int_t right);
107  static Bool_t CompareRadius(const TGraph* gr, Int_t left, Int_t right);
108  virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const;
109  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
110  virtual void Draw(Option_t *chopt="");
111  virtual void DrawGraph(Int_t n, const Int_t *x, const Int_t *y, Option_t *option="");
112  virtual void DrawGraph(Int_t n, const Float_t *x, const Float_t *y, Option_t *option="");
113  virtual void DrawGraph(Int_t n, const Double_t *x=0, const Double_t *y=0, Option_t *option="");
114  virtual void DrawPanel(); // *MENU*
115  virtual Double_t Eval(Double_t x, TSpline *spline=0, Option_t *option="") const;
116  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
117  virtual void Expand(Int_t newsize);
118  virtual void Expand(Int_t newsize, Int_t step);
119  virtual TObject *FindObject(const char *name) const;
120  virtual TObject *FindObject(const TObject *obj) const;
121  virtual TFitResultPtr Fit(const char *formula ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0); // *MENU*
122  virtual TFitResultPtr Fit(TF1 *f1 ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0);
123  virtual void FitPanel(); // *MENU*
124  Bool_t GetEditable() const;
125  TF1 *GetFunction(const char *name) const;
126  TH1F *GetHistogram() const;
127  TList *GetListOfFunctions() const { return fFunctions; }
128  virtual Double_t GetCorrelationFactor() const;
129  virtual Double_t GetCovariance() const;
130  virtual Double_t GetMean(Int_t axis=1) const;
131  virtual Double_t GetRMS(Int_t axis=1) const;
132  Int_t GetMaxSize() const {return fMaxSize;}
133  Int_t GetN() const {return fNpoints;}
134  virtual Double_t GetErrorX(Int_t bin) const;
135  virtual Double_t GetErrorY(Int_t bin) const;
136  virtual Double_t GetErrorXhigh(Int_t bin) const;
137  virtual Double_t GetErrorXlow(Int_t bin) const;
138  virtual Double_t GetErrorYhigh(Int_t bin) const;
139  virtual Double_t GetErrorYlow(Int_t bin) const;
140  Double_t *GetX() const {return fX;}
141  Double_t *GetY() const {return fY;}
142  virtual Double_t *GetEX() const {return 0;}
143  virtual Double_t *GetEY() const {return 0;}
144  virtual Double_t *GetEXhigh() const {return 0;}
145  virtual Double_t *GetEXlow() const {return 0;}
146  virtual Double_t *GetEYhigh() const {return 0;}
147  virtual Double_t *GetEYlow() const {return 0;}
148  virtual Double_t *GetEXlowd() const {return 0;}
149  virtual Double_t *GetEXhighd() const {return 0;}
150  virtual Double_t *GetEYlowd() const {return 0;}
151  virtual Double_t *GetEYhighd() const {return 0;}
152  Double_t GetMaximum() const {return fMaximum;}
153  Double_t GetMinimum() const {return fMinimum;}
154  TAxis *GetXaxis() const ;
155  TAxis *GetYaxis() const ;
156  virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const;
157 
158  virtual void InitExpo(Double_t xmin=0, Double_t xmax=0);
159  virtual void InitGaus(Double_t xmin=0, Double_t xmax=0);
160  virtual void InitPolynom(Double_t xmin=0, Double_t xmax=0);
161  virtual Int_t InsertPoint(); // *MENU*
162  virtual Double_t Integral(Int_t first=0, Int_t last=-1) const;
163  virtual Bool_t IsEditable() const {return !TestBit(kNotEditable);}
164  virtual Int_t IsInside(Double_t x, Double_t y) const;
165  virtual void LeastSquareFit(Int_t m, Double_t *a, Double_t xmin=0, Double_t xmax=0);
166  virtual void LeastSquareLinearFit(Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin=0, Double_t xmax=0);
167  virtual Int_t Merge(TCollection* list);
168  virtual void Paint(Option_t *chopt="");
169  void PaintGraph(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt);
170  void PaintGrapHist(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt);
171  virtual void PaintStats(TF1 *fit);
172  virtual void Print(Option_t *chopt="") const;
173  virtual void RecursiveRemove(TObject *obj);
174  virtual Int_t RemovePoint(); // *MENU*
175  virtual Int_t RemovePoint(Int_t ipoint);
176  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
177  virtual void SetEditable(Bool_t editable=kTRUE); // *TOGGLE* *GETTER=GetEditable
178  virtual void SetHistogram(TH1F *h) {fHistogram = h;}
179  virtual void SetMaximum(Double_t maximum=-1111); // *MENU*
180  virtual void SetMinimum(Double_t minimum=-1111); // *MENU*
181  virtual void Set(Int_t n);
182  virtual void SetPoint(Int_t i, Double_t x, Double_t y);
183  virtual void SetTitle(const char *title=""); // *MENU*
184  virtual void Sort(Bool_t (*greater)(const TGraph*, Int_t, Int_t)=&TGraph::CompareX,
185  Bool_t ascending=kTRUE, Int_t low=0, Int_t high=-1111);
186  virtual void UseCurrentStyle();
187  void Zero(Int_t &k,Double_t AZ,Double_t BZ,Double_t E2,Double_t &X,Double_t &Y,Int_t maxiterations);
188 
189  ClassDef(TGraph,4) //Graph graphics class
190 };
191 
192 inline Double_t **TGraph::Allocate(Int_t newsize) {
193  return AllocateArrays(2, newsize);
194 }
195 
196 #endif
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
Fit this graph with function with name fname.
Definition: TGraph.cxx:1047
virtual Bool_t IsEditable() const
Definition: TGraph.h:163
void PaintGrapHist(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
Draw the (x,y) as a histogram.
Definition: TGraph.cxx:1948
Int_t fNpoints
Current dimension of arrays fX and fY.
Definition: TGraph.h:58
virtual Double_t GetErrorYhigh(Int_t bin) const
This function is called by GraphFitChisquare.
Definition: TGraph.cxx:1433
float xmin
Definition: THbookFile.cxx:93
Double_t * fX
Definition: TGraph.h:59
virtual Double_t * GetEX() const
Definition: TGraph.h:142
virtual void FitPanel()
Display a GUI panel with all graph fit options.
Definition: TGraph.cxx:1306
virtual Double_t GetErrorY(Int_t bin) const
This function is called by GraphFitChisquare.
Definition: TGraph.cxx:1403
static Bool_t CompareRadius(const TGraph *gr, Int_t left, Int_t right)
Return kTRUE if point number "left"&#39;s distance to origin is bigger than that of point number "right"...
Definition: TGraph.cxx:638
TGraph()
Graph default constructor.
Definition: TGraph.cxx:87
TF1 * GetFunction(const char *name) const
Return pointer to function with name.
Definition: TGraph.cxx:1454
virtual Double_t ** Allocate(Int_t newsize)
Definition: TGraph.h:192
void PaintGraph(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
Draw the (x,y) as a graph.
Definition: TGraph.cxx:1939
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
float ymin
Definition: THbookFile.cxx:93
virtual void InitPolynom(Double_t xmin=0, Double_t xmax=0)
Compute Initial values of parameters for a polynom.
Definition: TGraph.cxx:1665
virtual Double_t * GetEYlow() const
Definition: TGraph.h:147
double Axis_t
Definition: RtypesCore.h:72
virtual void SetMinimum(Double_t minimum=-1111)
Set the minimum of the graph.
Definition: TGraph.cxx:2141
Bool_t TestBit(UInt_t f) const
Definition: TObject.h:157
#define BIT(n)
Definition: Rtypes.h:120
TH1 * h
Definition: legend2.C:5
static Bool_t CompareX(const TGraph *gr, Int_t left, Int_t right)
Return kTRUE if fX[left] > fX[right]. Can be used by Sort.
Definition: TGraph.cxx:621
Base class for spline implementation containing the Draw/Paint methods //.
Definition: TSpline.h:22
virtual Double_t * GetEXhighd() const
Definition: TGraph.h:149
TVectorT.
Definition: TMatrixTBase.h:89
TList * GetListOfFunctions() const
Definition: TGraph.h:127
TAxis * GetYaxis() const
Get y axis of the graph.
Definition: TGraph.cxx:1596
virtual Double_t * GetEY() const
Definition: TGraph.h:143
virtual TObject * FindObject(const char *name) const
Search object named name in the list of functions.
Definition: TGraph.cxx:1020
tomato 1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:575
virtual void DrawPanel()
Display a panel with all graph drawing options.
Definition: TGraph.cxx:841
virtual void LeastSquareFit(Int_t m, Double_t *a, Double_t xmin=0, Double_t xmax=0)
Least squares polynomial fitting without weights.
Definition: TGraph.cxx:1809
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TArc * a
Definition: textangle.C:12
virtual Double_t GetCovariance() const
Return covariance of vectors x,y.
Definition: TGraph.cxx:1340
TList * fFunctions
Definition: TGraph.h:61
virtual void SetTitle(const char *title="")
Set graph title.
Definition: TGraph.cxx:2176
TH1F * fHistogram
Definition: TGraph.h:62
static std::string format(double x, double y, int digits, int width)
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from the list of functions.
Definition: TGraph.cxx:1976
virtual Double_t Integral(Int_t first=0, Int_t last=-1) const
Integrate the TGraph data within a given (index) range.
Definition: TGraph.cxx:1761
virtual Double_t GetErrorYlow(Int_t bin) const
This function is called by GraphFitChisquare.
Definition: TGraph.cxx:1443
virtual void Apply(TF1 *f)
Apply function f to all the data points f may be a 1-D function TF1 or 2-d function TF2 The Y values ...
Definition: TGraph.cxx:552
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
Definition: TGraph.cxx:747
virtual Int_t Merge(TCollection *list)
Adds all graphs from the collection to this graph.
Definition: TGraph.cxx:2379
Marker Attributes class.
Definition: TAttMarker.h:24
virtual Bool_t CopyPoints(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
Copy points from fX and fY to arrays[0] and arrays[1] or to fX and fY if arrays == 0 and ibegin != ie...
Definition: TGraph.cxx:695
Double_t ** ShrinkAndCopy(Int_t size, Int_t iend)
if size*2 <= fMaxSize allocate new arrays of size points, copy points [0,oend).
Definition: TGraph.cxx:2188
Fill Area Attributes class.
Definition: TAttFill.h:24
Double_t x[n]
Definition: legend1.C:17
virtual void Paint(Option_t *chopt="")
Draw this graph with its current attributes.
Definition: TGraph.cxx:1930
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Double_t Chisquare(TF1 *f1, Option_t *option="") const
Return the chisquare of this graph with respect to f1.
Definition: TGraph.cxx:593
TGraph & operator=(const TGraph &)
Equal operator for this graph.
Definition: TGraph.cxx:187
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
virtual void Sort(Bool_t(*greater)(const TGraph *, Int_t, Int_t)=&TGraph::CompareX, Bool_t ascending=kTRUE, Int_t low=0, Int_t high=-1111)
Sorts the points of this TGraph using in-place quicksort (see e.g.
Definition: TGraph.cxx:2221
virtual void Print(Option_t *chopt="") const
Print graph values.
Definition: TGraph.cxx:1966
virtual void SetMaximum(Double_t maximum=-1111)
Set the maximum of the graph.
Definition: TGraph.cxx:2132
void Zero(Int_t &k, Double_t AZ, Double_t BZ, Double_t E2, Double_t &X, Double_t &Y, Int_t maxiterations)
Find zero of a continuous function.
Definition: TGraph.cxx:2411
virtual Double_t GetErrorX(Int_t bin) const
This function is called by GraphFitChisquare.
Definition: TGraph.cxx:1394
Double_t fMinimum
Definition: TGraph.h:63
virtual Double_t Eval(Double_t x, TSpline *spline=0, Option_t *option="") const
Interpolate points in this graph at x using a TSpline -if spline==0 and option="" a linear interpolat...
Definition: TGraph.cxx:860
virtual Int_t RemovePoint()
Delete point close to the mouse position.
Definition: TGraph.cxx:1987
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TGraph.cxx:963
A doubly linked list.
Definition: TList.h:47
virtual void Expand(Int_t newsize)
If array sizes <= newsize, expand storage to 2*newsize.
Definition: TGraph.cxx:972
Bool_t CtorAllocate()
In constructors set fNpoints than call this method.
Definition: TGraph.cxx:721
virtual Double_t * GetEYhighd() const
Definition: TGraph.h:151
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TGraph.cxx:2024
float ymax
Definition: THbookFile.cxx:93
virtual Double_t GetErrorXlow(Int_t bin) const
This function is called by GraphFitChisquare.
Definition: TGraph.cxx:1423
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
Definition: TGraph.cxx:1574
virtual void SwapPoints(Int_t pos1, Int_t pos2)
Swap points.
Definition: TGraph.cxx:2323
Class to manage histogram axis.
Definition: TAxis.h:36
Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointe...
Definition: TFitResultPtr.h:33
static void SwapValues(Double_t *arr, Int_t pos1, Int_t pos2)
Swap values.
Definition: TGraph.cxx:2332
Collection abstract base class.
Definition: TCollection.h:48
virtual Bool_t DoMerge(const TGraph *g)
protected function to perform the merge operation of a graph
Definition: TGraph.cxx:2396
TMarker * m
Definition: textangle.C:8
virtual Int_t InsertPoint()
Insert a new point at the mouse position.
Definition: TGraph.cxx:1685
Int_t GetN() const
Definition: TGraph.h:133
float xmax
Definition: THbookFile.cxx:93
Bool_t GetEditable() const
Return kTRUE if kNotEditable bit is not set, kFALSE otherwise.
Definition: TGraph.cxx:2114
virtual Double_t GetRMS(Int_t axis=1) const
Return RMS of X (axis=1) or Y (axis=2)
Definition: TGraph.cxx:1371
Double_t GetMaximum() const
Definition: TGraph.h:152
TGraphErrors * gr
Definition: legend1.C:25
TAxis * GetXaxis() const
Get x axis of the graph.
Definition: TGraph.cxx:1586
Double_t * GetX() const
Definition: TGraph.h:140
virtual Double_t * GetEXlowd() const
Definition: TGraph.h:148
virtual void InitGaus(Double_t xmin=0, Double_t xmax=0)
Compute Initial values of parameters for a gaussian.
Definition: TGraph.cxx:1606
virtual Double_t * GetEYlowd() const
Definition: TGraph.h:150
virtual Double_t GetMean(Int_t axis=1) const
Return mean value of X (axis=1) or Y (axis=2)
Definition: TGraph.cxx:1356
double f(double x)
TH1F * GetHistogram() const
Returns a pointer to the histogram used to draw the axis Takes into account the two following cases...
Definition: TGraph.cxx:1466
double Double_t
Definition: RtypesCore.h:55
virtual void PaintStats(TF1 *fit)
Draw the stats.
Definition: TGraph.cxx:1957
virtual Double_t * GetEXlow() const
Definition: TGraph.h:145
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a graph.
Definition: TGraph.cxx:788
Double_t y[n]
Definition: legend1.C:17
The TH1 histogram class.
Definition: TH1.h:80
virtual ~TGraph()
Graph default destructor.
Definition: TGraph.cxx:505
Double_t fMaximum
Definition: TGraph.h:64
Double_t ** ExpandAndCopy(Int_t size, Int_t iend)
if size > fMaxSize allocate new arrays of 2*size points and copy iend first points.
Definition: TGraph.cxx:997
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void UseCurrentStyle()
Set current style settings in this graph This function is called when either TCanvas::UseCurrentStyle...
Definition: TGraph.cxx:2344
virtual void Browse(TBrowser *b)
Browse.
Definition: TGraph.cxx:567
virtual void FillZero(Int_t begin, Int_t end, Bool_t from_ctor=kTRUE)
Set zero values for point arrays in the range [begin, end) Should be redefined in descendant classes...
Definition: TGraph.cxx:1011
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
Definition: TGraph.cxx:2150
Double_t * fY
Definition: TGraph.h:60
Double_t * GetY() const
Definition: TGraph.h:141
virtual void InitExpo(Double_t xmin=0, Double_t xmax=0)
Compute Initial values of parameters for an exponential.
Definition: TGraph.cxx:1644
virtual void LeastSquareLinearFit(Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin=0, Double_t xmax=0)
Least square linear fit without weights.
Definition: TGraph.cxx:1884
static Bool_t CompareArg(const TGraph *gr, Int_t left, Int_t right)
Return kTRUE if point number "left"&#39;s argument (angle with respect to positive x-axis) is bigger than...
Definition: TGraph.cxx:610
1-Dim function class
Definition: TF1.h:149
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:53
TF1 * f1
Definition: legend1.C:11
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
virtual void CopyAndRelease(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
Copy points from fX and fY to arrays[0] and arrays[1] or to fX and fY if arrays == 0 and ibegin != ie...
Definition: TGraph.cxx:678
virtual void SetHistogram(TH1F *h)
Definition: TGraph.h:178
Int_t GetMaxSize() const
Definition: TGraph.h:132
virtual void DrawGraph(Int_t n, const Int_t *x, const Int_t *y, Option_t *option="")
Draw this graph with new attributes.
Definition: TGraph.cxx:798
virtual Double_t GetCorrelationFactor() const
Return graph correlation factor.
Definition: TGraph.cxx:1328
Definition: first.py:1
Int_t fMaxSize
Definition: TGraph.h:57
virtual Int_t IsInside(Double_t x, Double_t y) const
Return 1 if the point (x,y) is inside the polygon defined by the graph vertices 0 otherwise...
Definition: TGraph.cxx:1794
virtual Double_t * GetEYhigh() const
Definition: TGraph.h:146
virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
Compute the x/y range of the points in this graph.
Definition: TGraph.cxx:647
virtual void Set(Int_t n)
Set number of points in the graph Existing coordinates are preserved New coordinates above fNpoints a...
Definition: TGraph.cxx:2099
const Bool_t kTRUE
Definition: Rtypes.h:91
Double_t GetMinimum() const
Definition: TGraph.h:153
virtual void SetEditable(Bool_t editable=kTRUE)
if editable=kFALSE, the graph cannot be modified with the mouse by default a TGraph is editable ...
Definition: TGraph.cxx:2123
Double_t ** AllocateArrays(Int_t Narrays, Int_t arraySize)
Allocate arrays.
Definition: TGraph.cxx:529
const Int_t n
Definition: legend1.C:16
virtual Double_t GetErrorXhigh(Int_t bin) const
This function is called by GraphFitChisquare.
Definition: TGraph.cxx:1413
Line Attributes class.
Definition: TAttLine.h:24
char name[80]
Definition: TGX11.cxx:109
virtual Double_t * GetEXhigh() const
Definition: TGraph.h:144
static Bool_t CompareY(const TGraph *gr, Int_t left, Int_t right)
Return kTRUE if fY[left] > fY[right]. Can be used by Sort.
Definition: TGraph.cxx:629