[ROOT] Color changes on refresh..

From: Maurik Holtrop (maurik@improv.unh.edu)
Date: Mon Jul 24 2000 - 22:50:15 MEST


Hello ROOT,

I spotted some misterious behavior in releases 2.23_12 (under bosth X3.3.6
and X4.0) and 2.25/00 (X.0), I am not sure about previous releases....

When I create a TH2F object and then draw it with Draw("contz"), all the
"correct" colors are uses. If I then force a window refresh (either move an
other window over this one, OR do something like more the stat box), the
colors change on the refresh to the "wrong" colors! Trying to redraw the
histogram (first Draw(""), then Draw("contz") to make sure), the "wrong"
colors apprear again. If I reset the colorscheme, first time the result is
ok. Move the box, the color scheme goes "wrong".

It gets more misterious. If I define a style (say for black and white
printing of contour levels, I make a 20 level grayscale contour steps using
gStyle->SetPalette(20,ncolors). The first draw of the histogram looks great.
The "refresh" version mixes up the colors again, resetting the gStyle will
draw the histogram in 50 colors instead of the requested 20 (the first 20
are the grayscale I defined)!

Now, this makes it REALLY hard to get a good looking histogram!

Perhaps I don't properly understand the use of gStyle?
Could someone please advise?

Maurik Holtrop
-- 
----------------------------------------------------------------------
 Maurik Holtrop              web: http://www.physics.unh.edu/Maurik
 UNH Physics Department      tel: (603) 862-2019 | fax: (603) 862-2998
 DeMeritt Hall               mailto:maurik.holtrop@unh.edu
 Durham, NH 03824            Home: (603) 659-8765
----------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:30 MET