Re: [ROOT] Gradient Palette when drawing 2D histograms with "col" option

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Thu Mar 25 2004 - 17:51:56 MET


Hi Eric,

> 1) Biny = 30, binx = 28,29  appear black, while they should be white,
> this seems to be a bug.

 This was due to some rounding errors I fixed it. Thanks to have reported 
it.

> 2) I raise again the issue of drawing or not "content = 0.0" bins with
> the "col" option. This issue has already been addressed in:
>

I agree with you that in plots like the one produced by your macro, bins 
with content equal to zero should not be treated in a particular way. On 
the other hand, when a bin has not been filled it must be clearly visible.
But as you said, this has a sense only with "positively filled" 
histograms. So, we have decided to not draw the bins with content zero 
*only* if the histogram is entirely positive. So the test in 
PaintColorLevels is now:

if (z == 0 && zmin >= 0) continue;

I have run all the various examples I have and didn't find a case having 
unwanted side effects. Let me know if you find a "bad case".

 Thanks for your suggestions,

 Cheers,         Olivier

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET