Hi,
Is it possible to change the colour/style of just one (or a small selection) of bin markers in a histogram, while leaving the others as some other colour/style?
Thanks,
Andrew
Hi,
Is it possible to change the colour/style of just one (or a small selection) of bin markers in a histogram, while leaving the others as some other colour/style?
Thanks,
Andrew
Please look at:
root.cern.ch/root/roottalk/roottalk04/0393.html
root.cern.ch/root/roottalk/roottalk04/1074.html
root.cern.ch/root/roottalk/roottalk04/1895.html
root.cern.ch/root/roottalk/roottalk03/1614.html
Jan
If you have a TTree T , you can do
T.Draw("y:x:z","',"col");
T.Draw("w:y:x:z","","col")
This will produce a 2-d (1st case) or 3-d (2nd case) scatter plot
where the variable z will be mapped to a color number.
see doc of TTree::Draw (introduced in 4.02/4.03).
eg with the file hsimple.root produced by tutorial hsimple.C, you can try
ntuple.Draw(“px:py:pz”,"",“col”)
Rene