ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.