Simone Bifani
2011-03-23 13:23:46 UTC
Hi,
it looks like the GetXmax method is not working properly when retrieving
the y-axis maximum of a TH1 histogram
root [0] TH1D *hHisto = new TH1D("","",10,0,10)
root [1] hHisto->FillRandom("gaus")
root [2] hHisto->GetYaxis()->GetXmax()
(const Double_t)1.00000000000000000e+00
while it should be something like 6640 (see attached plot)
I checked few ROOT versions (5.26, 5.28, and trunk) and I always
experienced the same behaviour
Am I doing something wrong or is there a bug?
Thanks,
s.
it looks like the GetXmax method is not working properly when retrieving
the y-axis maximum of a TH1 histogram
root [0] TH1D *hHisto = new TH1D("","",10,0,10)
root [1] hHisto->FillRandom("gaus")
root [2] hHisto->GetYaxis()->GetXmax()
(const Double_t)1.00000000000000000e+00
while it should be something like 6640 (see attached plot)
I checked few ROOT versions (5.26, 5.28, and trunk) and I always
experienced the same behaviour
Am I doing something wrong or is there a bug?
Thanks,
s.