Hi, A simple example below: Rene Brun void colored() { TH1F *h = new TH1F("h","a colored plot",100,0,3); h->FillRandom("gaus",10000); h->DrawCopy(); for (Int_t i=1;i<100;i+=5) { h->SetFillColor((i+4)/5); h->GetXaxis()->SetRange(i,i+4); h->DrawCopy("same"); } } stevenkj wrote: > > Hello , > > Quite simple this one. Is it possible to specify bin ranges for > coloured fills ? (ie. bins 1-5 blue , bins 5-10 red ) . I need to present > info in a more intuitive format that a single mono-coloured fill allows, > > Regards, > Kyle Stevenson.
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET