histograms binning

From: C. Bernet (bernet@phnx7.saclay.cea.fr)
Date: Thu Dec 09 1999 - 14:39:15 MET


Hi,

It looks like when you create a 2d histogram hist, bins in x and y start
at 1.
When you execute the following command :

hist->GetBin(1,1)

the result is not 1 (0 would also be ok) but 19 in my case (TH2F, 16*16
bins).

Yet :
hist->GetBin(0,0) gives 0. But if you try to fill this bin
(hist->SetBinContent(0,1.)) and draw the TH2F, you see that this bin is
out of range....

Does anybody know if it's a bug or if the previous bins are used for
something else ?

Thanks a lot.
            Colin



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET