Hello,
May be you can also take as example what is done in
THistPainter::PaintColorLevels :
http://root.cern.ch/root/html/src/THistPainter.cxx.html#YSSJU
This will show you how the colors IDs are accessed when an histogram is
painted using the option COL.
Cheers,
O.Couet
-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On Behalf Of John Idarraga
Sent: Wednesday, September 23, 2009 8:34 PM
To: Luca Grandi
Cc: roottalk_at_lxbuild091.cern.ch
Subject: Re: [ROOT] color palette ID
Hello Luca,
There is an example here, some code I wrote a long time ago (look at this member --> void MPXViewer::setHistoPalette(Int_t visMode) )
http://atlaspc4.lps.umontreal.ca/cgi-bin/viewcvs.cgi/idarraga/medipix/Me diPixAnalysisCore/MPXViewer/MPXViewer.cpp?revision=1.25&view=markup
it should be self explanatory ... look specifically at the private member "palette".
cheers,
John Idarraga
On Wed, 2009-09-23 at 19:55 +0200, Luca Grandi wrote:
> Dear Root users,
>
> I am interested in using SetFillColor to set the colors of some
> graphical objects (not COLZ histo) according to a palette going from
> violet to red (in order to be proportional to a variable). Is there a
> way to associate to the color of the palette an increasing color ID?
> Thank you
>
> Luca
>
Received on Thu Sep 24 2009 - 09:38:11 CEST
This archive was generated by hypermail 2.2.0 : Sat Sep 26 2009 - 17:50:02 CEST