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

TH1* 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.