Logo ROOT   6.16/01
Reference Guide
Functions | Variables
legend3.C File Reference

Functions

leg AddEntry (h, "Column 1 line 1", "l")
 
leg AddEntry (h, "Column 1 line 2", "l")
 
leg AddEntry (h, "Column 2 line 1", "l")
 
leg AddEntry (h, "Column 2 line 2", "l")
 
leg Draw ()
 
leg SetNColumns (2)
 

Variables

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

Function Documentation

◆ AddEntry() [1/4]

leg AddEntry ( h  ,
"Column 1 line 1"  ,
"l"   
)

◆ AddEntry() [2/4]

leg AddEntry ( h  ,
"Column 1 line 2"  ,
"l"   
)

◆ AddEntry() [3/4]

leg AddEntry ( h  ,
"Column 2 line 1"  ,
"l"   
)

◆ AddEntry() [4/4]

leg AddEntry ( h  ,
"Column 2 line 2"  ,
"l"   
)

◆ Draw()

leg Draw ( )

◆ SetNColumns()

leg SetNColumns ( )

Variable Documentation

◆ c3

return c3

Definition at line 15 of file legend3.C.

◆ h

TH1* h = new TH1F("", "", 1, 0, 1)

Definition at line 5 of file legend3.C.

◆ leg

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

Definition at line 4 of file legend3.C.