Re: [ROOT] 2d histogram: right number but wrong colour in col mode

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Nov 06 2004 - 17:29:47 MET


Reinhart,

Please send the shortest possible script illustrating your problem.

A priori, it looks like you are filling bins with values of i or/and j
at the edge of the bin (precision problem). Instead, specify the bin 
center.

Rene Brun

On 
Sat, 
6 Nov 2004, Reinhardt Chamonal wrote:

> Hi,
> 
> I am using v4.00/01
> I am filling a 2d histogram (wihtin a C porgram) , with:
> correl->Fill(i,j,p);
> where i and j are integers and p is a float.
> Now my problem is that when I draw the histogram in col mode sometimes the 
> color isn't right when my entry is 1, 1 being my maximum value. With a 
> palette from blue to red, sometimes it would be blue and sometimes red 
> eventhough the entry is one :(
> Any idea of what I might be doing wrong ?
> I have attached two pictures where the diagonal illustrates the problem.
> 
> Cheers
>  
> 
> 
> 
> 



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