Changing the color from curve of a tree

Hi all,

I would like to change the color of one of two curve from a graph coming from a tree. See below the code:

    TTree *a ;
TFile *f=new TFile("tree1.root");
f->ls();
a=(TTree *)f->Get("t");

a->Draw("Elabh","CUTG","");
a->Draw("Elabl","CUTG","same");

I would like that Elabl is on the same graph as Elabh but in another color, for example green.
Any help is welcome.
Thanks

The objects generated by a TTree (eg TH1, TGraph) inherit their attributes from the TTree attributes. Change TTree line color and the corresponding color will be used for the TGraphs.
Same for marker color, style, text, etc

Rene

OK, it works.

Thanks