Hi Avi, you can do as follows: root [0] TFile f("hists040.root") root [1] gStyle->SetHistFillStyle(1001) // solid root [2] gStyle->SetHistFillColor(2); // red root [3] gROOT->ForceStyle() root [4] RateHist->Draw() Cheers Otto On Tue, 12 Mar 2002, Avi Malki wrote: > > hi all, > > I have a lots of histogram and i want to fill them with the same color. > > Instead of type: > > His_1->SetFillCollor(17); > His_2->SetFillCollor(17); > His_3->SetFillCollor(17); > .....and so on, > > I wonder if there is general command for all histogram to fill with the > same color in the same time. > > something like: "all histograms"->SetFillCollor(17); > > Best regards, > Avi. > > ------------------------------------------------------------------- > Avi Malki > Department of Nuclear Physics > School of Physics and Astronomy > Tel-Aviv University > Israel > > University - Phone : 972-3-6407415 Fax : 972-3-6406369 > Home - Phone : 972-3-5081734 > > E-Mail: malki@tauphy.tau.ac.il > WWW : http://www-nuclear.tau.ac.il/~malki/ > ------------------------------------------------------------------- > > -- Otto Schaile Sektion Physik, LMU Muenchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany GSM: +49 160 1553598 FAX: +49 89 289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET