Getting the uppest abscissa of a histogram

Hello,
when creating a THF1 histogram one can specify the lowest and the highest x values…
But then, even if I know the range of my histogram, it would be nice to be able to recall the maximum (and minimum) x value to use it, for example in a code, without having to put it in “by hand”…
How can I do?
Thank you very much!
Elena

Hi,

see TAxis::GetXmin() and GetXmax()

Cheers, Axel.

to be more precise, do, eg

myhist->GetXaxis()->GetXmin();
Rene