[ROOT] different colored lines from same TTree in a single plot

From: Benn Tannenbaum (bennt@mediaone.net)
Date: Sat Dec 15 2001 - 00:44:18 MET


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