Hi Thomas, Please read the 2.22 release notes. You will find the following: - Add a new set of colors (51->100) in class TApplication. These new colors fill a spectrum ranging from violet to red. - In TStyle::SetPalette(int ncolors, int *colors=0) support a new option. When calling SetPalette(0), the default palette is set. When calling SetPalette(1), a new color palette is defined using the 50 colors 51->100. This palette 1 should be used to produce contour, lego, surface plots. Thanks to Thomas Ulrich and Jon Gans from the STAR collaboration. Rene Brun Thomas Eberl wrote: > > Hi rooters, > > we have written an application for online analysis. It was developped under > ROOT 2.21/08 and Suse Linux 6.0 on Pentium II / 400 using egcs 1.1.1. > To define a nice color palette we have used the little routine that appeared > on roottalk on > Date: > Fri, 25 Jun 1999 11:37:19 -0400 (EDT) > From: > Jon Gans <gans@star.physics.yale.edu> > Title: Pretty Palette Spectrum Violet->Red HowTo: > > It worked fine, i.e. no warnings, no problems .... > > Now we work under RedHat6.0, ROOT 2.22/10, egcs 1.1.2 > The following problem occurs: > If I use the above mentioned macro by Jon Gans <gans@star.physics.yale.edu> I > get warnings that all the colors are already defined and the last one cannot be > allocated at all. In the compiled code which uses the same routine I get > warnings at run-time that the colors are already defined and 16 (the reddish > end of the spectrum) can't be allocated at all, which leaves me with an ugly > event display. > > My question: What was changed between the two ROOT versions concerning colors ? > Are the colors between 50 and 100 still available for redefinition ? Has > anybody observed similar problems. Is it a RedHat (X-Server) phenomenon? > Any comment appreciated, I am lost .... :-) > > Regards > > Thomas > > -- > Thomas Eberl Phone: (+49 89) 289 1 2425 > Physik-Department E12, Technische Universitaet Muenchen > James-Franck-Strasse *** D-85748 Garching b. Muenchen > Email: Thomas.Eberl@physik.tu-muenchen.de
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET