ROOT  6.06/09
Reference Guide
Functions | Variables
legend3.C File Reference

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

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

Variable Documentation

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

Definition at line 5 of file legend3.C.

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

Definition at line 4 of file legend3.C.