Hi Benn, The histogram generated by TTree::Draw has its graphics attributes inherited from the Tree graphics attributes. In your script, simply replace gStyle by myTree. Rene Brun On Fri, 14 Dec 2001, Benn Tannenbaum wrote: > Hi Folks, > > I'm trying to plot several things in the same plot, with different > colored lines, but I can't seem to get the lines to change color. Here's > the script I use: > > myTree->Draw("strip","plug==0&&octant==0","",1000); > gStyle->SetLineColor(3); > gROOT->ForceStyle(); > myTree->Draw("strip","plug==0&&octant==1","same",1000); > gStyle->SetLineColor(4); > myTree->Draw("strip","plug==0&&octant==2","same",1000); > gStyle->SetLineColor(5); > myTree->Draw("strip","plug==0&&octant==3","same",1000); > gStyle->SetLineColor(6); > myTree->Draw("strip","plug==0&&octant==4","same",1000); > gStyle->SetLineColor(7); > myTree->Draw("strip","plug==0&&octant==5","same",1000); > gStyle->SetLineColor(8); > myTree->Draw("strip","plug==0&&octant==6","same",1000); > gStyle->SetLineColor(9); > myTree->Draw("strip","plug==0&&octant==7","same",1000); > > What am I doing wrong? How do I get the lines to change color? In PAW > the lines would change color automatically.... > > > thanks! > > > -Benn >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET