Re: color palette ID

From: John Idarraga <idarraga_at_cern.ch>
Date: Wed, 23 Sep 2009 14:33:59 -0400


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/MediPixAnalysisCore/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 Wed Sep 23 2009 - 20:33:02 CEST

This archive was generated by hypermail 2.2.0 : Thu Sep 24 2009 - 11:50:03 CEST