[ROOT] different bin color in TH1

From: Musinsky J. (mucha@sunhe.jinr.ru)
Date: Wed Mar 31 2004 - 13:51:52 MEST


  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



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET