Hi,
Try the attached example.
Cheers, Olivier
On Wed, 31 Mar 2004, Musinsky J. wrote:
> Hello,
> exist any method how draw in histogram any bins with different color ?
> For example:
>
> h1 = new TH1F("h1","h1",100,-10,10);
> h1->FillRandom("gaus");
>
> TH1F::SetBinColor(10,RED)
> TH1F::SetBinColor(20,BLUE)
>
> I nedd draw this histo with bin 10 RED color and with bin 20 BLUE color
> (other bins with default color)
>
> Thanks Jan
>
>
--
Org: CERN - European Laboratory for Particle Physics.
Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522
WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET