Functions | |
| leg | AddEntry ("f1","Function abs(#frac{sin(x)}{x})","l") | 
| leg | AddEntry ("gr","Graph with error bars","lep") | 
| leg | AddEntry (h1,"Histogram filled with random numbers","f") | 
| gr | Draw ("P") | 
| f1 | Draw ("same") | 
| h1 | Draw () | 
| h1 | FillRandom ("gaus", 30000) | 
| for (Int_t i=0;i< n;i++) | |
| h1 | SetFillColor (kGreen) | 
| h1 | SetFillStyle (3003) | 
| leg | SetHeader ("The Legend Title") | 
| f1 | SetLineColor (kBlue) | 
| gr | SetLineColor (kRed) | 
| gr | SetLineWidth (2) | 
| f1 | SetLineWidth (4) | 
| gr | SetMarkerColor (7) | 
| gr | SetMarkerSize (1.3) | 
| gr | SetMarkerStyle (21) | 
| gr | SetName ("gr") | 
| gStyle | SetOptStat (0) | 
Variables | |
| return | c1 | 
| Double_t | ex [n] | 
| Double_t | ey [n] | 
| TF1 * | f1 =new TF1("f1","1000*TMath::Abs(sin(x)/x)",-10,10) | 
| TGraphErrors * | gr = new TGraphErrors(n,x,y,ex,ey) | 
| TH1F * | h1 = new TH1F("h1","TLegend Example",200,-10,10) | 
| leg = new TLegend(0.1,0.7,0.48,0.9) | |
| const Int_t | n = 20 | 
| Double_t | x [n] | 
| Double_t | y [n] | 
| leg AddEntry | ( | "gr" | , | 
| "Graph with error bars" | , | ||
| "lep" | |||
| ) | 
| gr Draw | ( | "P" | ) | 
| f1 Draw | ( | "same" | ) | 
| h1 Draw | ( | ) | 
| h1 FillRandom | ( | "gaus" | , | 
| 30000 | |||
| ) | 
| h1 SetFillStyle | ( | 3003 | ) | 
| leg SetHeader | ( | "The Legend Title" | ) | 
| gr SetLineWidth | ( | 2 | ) | 
| f1 SetLineWidth | ( | 4 | ) | 
| gr SetMarkerColor | ( | 7 | ) | 
| gr SetMarkerSize | ( | 1. | 3 | ) | 
| gr SetMarkerStyle | ( | 21 | ) | 
| gr SetName | ( | "gr" | ) | 
| gStyle SetOptStat | ( | 0 | ) | 
| TGraphErrors* gr = new TGraphErrors(n,x,y,ex,ey) | 
| Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h x | 
| Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h y |