RE: TColor problem?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 18 Nov 2009 10:06:58 +0100


Hello Akira,
Yes you got the idea. Inside each if(!initialized) you can put a return just before "}" because CreateGradientColorTable performs a SetPalette. Now, the first time, you do it twice... but that's really a detail. I think the TColor doc should be upgrade to show a example similar to this one (allowing to define the palette only once). Cheers,
Olivier

-----Original Message-----
From: Akira OKUMURA [mailto:oxon_at_juno.phys.s.u-tokyo.ac.jp] Sent: Tuesday, November 17, 2009 6:08 PM To: Olivier Couet
Cc: Axel Naumann; Rene Brun; roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] TColor problem?

Hello Olivier,

Thanks a lot. It works fine.

I modified your macro slightly as the attached shows.

root [0] .L color3.C
root [1] for(int i=0; i < 10; i++){ gROOT->ProcessLine("color3()");}

Regards,

OKUMURA, Akira oxon_at_juno.phys.s.u-tokyo.ac.jp Department of Physics, The University of Tokyo 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
TEL/FAX +81 3-5841-4173/4059
Skype : okumura.akira Received on Wed Nov 18 2009 - 10:07:04 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 18 2009 - 17:50:02 CET