[ROOT] TTree::Draw LineStyle Otptions

From: Andreas Salzburger (Andreas.Salzburger@cern.ch)
Date: Fri Aug 15 2003 - 11:21:21 MEST


Hi roottalkers,

i think i have a simple question, but somehow i can't manage to do it:

i try to compare to plots which i create from a tree, so first i create to 
histograms

TH1F* hist1 = new TH1F();
TH1F* hist2 = new TH1F();

then i do the following:

tree->Draw("variable1>>hist1(10, 0, 10)", "", "");
tree->Draw("variable2>>hist2(10, 0, 10)", "", "same");

works out fine, but then i wanted to draw one with a dashed line!

neither does
	hist1->SetLineStyle(3);
work, nor
	gStyle->SetHistLineStyle(3);



anyway i'm reading a rootlogon.C script predefining my styles, but even if 
i insert 
	gStyle->SetHistLineStyle(3);
in the script, the LineStyle is solid.

has anyone an idea how to solve that?

thanks in advance,
andreas

p.s.
echo $ROOTSYS
/afs/cern.ch/sw/root/v3.05.04/rh73_gcc32/root



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET