TAxis strange behaviour

From: Simone Bifani <>
Date: Wed, 23 Mar 2011 13:23:46 +0000


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?


Received on Wed Mar 23 2011 - 14:23:51 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 23 2011 - 17:50:01 CET