Re: How to define a 'paw-like' color range?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 14 Mar 2006 09:56:48 +0100 (CET)

Hi,

 I think what you are referring to was a bug in the PAW command "palette". The last color generated by "palette 1" was black but only by mistake. One extra color was wrongly selected. There was no smooth transition between the last dark red and the black. See the 3rd plot in: http://wwwasd.web.cern.ch/wwwasd/cgi-bin/listpawfaqs.pl/21

 gStyle->SetPalette( 1 ); in ROOT corected this "problem". But I can understand that like the fact the last color is black. So after having define the palette you just need to overwrite the last color with black.

 Cheers, Olivier

On Tue, 14 Mar 2006, Nicolas Arnaud wrote:

>
> Hi,
>
> I'm looking for a set of 'paw-like' colors ranging from dark blue to black
> [the kind of color range one gets with 'set ncol 50; palette 1' in paw].
>
> So far I found:
>
> gStyle->SetPalette( 1 );
> int colPalette[ 50 ];
> for (int i=0; i< 50; i++) {
> int icol = gStyle->GetColorPalette(i);
> colPalette[ i ] = icol;
> }
>
> but that color range only goes from blue to red and stops before reaching
> black. How could I setup the extended color range?
>
> Thanks in advance,
>
> Nicolas
>
>

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Tue Mar 14 2006 - 09:56:55 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET