User Tools

Site Tools


root:addlegend

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

root:addlegend [2010/11/09 16:43]
nchiap created
root:addlegend [2010/11/09 16:43] (current)
nchiap
Line 4: Line 4:
  ​legend->​AddEntry(histogram1,​ "​name1"​);​  ​legend->​AddEntry(histogram1,​ "​name1"​);​
  ​legend->​AddEntry(histogram2,​ "​name2"​);​  ​legend->​AddEntry(histogram2,​ "​name2"​);​
- ​legend->​SetFillColor(kWhite); ​ // otherwise you get ugly grey background+ ​legend->​SetFillColor(kWhite); ​ // otherwise you get an ugly grey background
  ​legend->​Draw();​  ​legend->​Draw();​
 </​code>​ </​code>​
root/addlegend.txt ยท Last modified: 2010/11/09 16:43 by nchiap