Re: SetPalette changed ?

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Wed, 9 Jan 2008 18:08:03 +0100


Hi Sophie,

the function has been moved to TColor as a static function. Simply call

TColor::CreateGradientColorTable(nRGBs, stops, red, green, blue, ncolors);

Cheers, Axel.

On 2008-01-09 15:13, Sophie Ferry wrote:
> Dear helpers ,
>
> I used to have :
> **********
> const int nRGBs = 5;
> double stops[nRGBs] = { xx,xx,xx,xx,xx };
> double red[nRGBs] = { 0.97, 0.47, 0.29, 0.22, 0.19 };
> double green[nRGBs] = { 0.77, 0.67, 0.58, 0.49, 0.02 };
> double blue[nRGBs] = { 0.97, 0.00, 0.09, 0.18, 0.09};
>
> gStyle->CreateGradientColorTable(nRGBs, stops, red, green, blue , ncolors);
> *********
> which was working fine on a linux computer.
>
> I have recently installed ROOT 5.17/06 on a windows machine with cygwin.
> and these aren't working anymore ....
> i get :
>
> >> class TStyle' has no member named 'CreateGradientColorTable'
>
> Can anybody tell me how i should modify these lines to get my own
> colorpalette..
>
> Thanks
> Cheers
> S.
>
>
Received on Wed Jan 09 2008 - 18:08:22 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 10 2008 - 17:50:01 CET