Access displayed range of TAxis


I’d like to know whether there is a way to access the displayed range of the y-axis in a TH1F.

The function TH1F->GetMinimum()/GetMaximum() deliver the minimum/maximum bin contents of the histogram, and TH1F::GetYaxis()->GetXmin() and TH1F::GetYaxis()->GetXmax() always return 0 and 1, respectively (these are methods I actually expected to get the displayed range).

Since the histogram displays the y-axis correctly it internally obviously knows the true range (which also applies to the corresponding maximum, that isn’t the maximum bin content, but rather something like the maximum of (bin contents + upper error bar) + 5% or so).

Best regards and thanks,

_ROOT Version: 6.0602
Platform: Not Provided
Compiler: Not Provided


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.