Logo ROOT   6.19/01
Reference Guide
legend2.C File Reference

Functions

leg AddEntry (h, "Histogram \\, "l")
 
leg AddEntry ((TObject *) 0, "", "")
 
leg AddEntry ((TObject *) 0, "Some text", "")
 
leg AddEntry (h, "Histogram \\again", "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 ( h  ,
"Histogram \  ,
"l"   
)

◆ AddEntry() [2/4]

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

◆ AddEntry() [3/4]

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

◆ AddEntry() [4/4]

leg AddEntry ( h  ,
"Histogram \gain"  ,
"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.