Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
legend2.C File Reference

Functions

leg AddEntry ((TObject *) 0, "", "")
 
leg AddEntry ((TObject *) 0, "Some text", "")
 
leg AddEntry (h, "Histogram \"h\" again", "l")
 
leg AddEntry (h, "Histogram \"h\"", "l")
 
leg Draw ()
 

Variables

return c2
 
TH1h = new TH1F("", "", 1, 0, 1)
 
TLegendleg = new TLegend(0.2, 0.2, .8, .8)
 

Function Documentation

◆ AddEntry() [1/4]

leg AddEntry ( (TObject *)  0,
""  ,
""   
)

◆ AddEntry() [2/4]

leg AddEntry ( (TObject *)  0,
"Some text"  ,
""   
)

◆ AddEntry() [3/4]

leg AddEntry ( h  ,
"Histogram \"h\" again"  ,
"l"   
)

◆ AddEntry() [4/4]

leg AddEntry ( h  ,
"Histogram \"h\""  ,
"l"   
)

◆ Draw()

leg Draw ( )

Variable Documentation

◆ c2

return c2

Definition at line 14 of file legend2.C.

◆ h

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 h = new TH1F("", "", 1, 0, 1)

Definition at line 5 of file legend2.C.

◆ leg

TLegend* leg = new TLegend(0.2, 0.2, .8, .8)

Definition at line 4 of file legend2.C.