Re: TAxis strange behaviour

From: Philip Rodrigues <p.rodrigues1_at_physics.ox.ac.uk>
Date: Wed, 23 Mar 2011 09:42:54 -0400


Hi Simone,
GetMaximum acts in a rather confusing way, see the documentation: http://root.cern.ch/root/html/TH1#TH1:GetMaximum

To get the maximum value on the y axis, TCanvas::GetUymax() seems to work for me (you may have to call TCanvas::Update() after calling the histogram).

Regards,
Philip

On Wednesday, March 23, 2011 09:34:54 am Simone Bifani wrote:
> Hi Olivier,
>
> as far as I know (and I actually just tested) GetMaximum returns the
> maximum bin content and not the maximum of the y-axis
>
> s.
>
> On 23/03/2011 13:30, Olivier Couet wrote:
> > For a 1D histogram you should do:
> >
> > hHisto->GetMaximum()
> >
> > On 3/23/11 2:23 PM, "Simone Bifani"<simone.bifani_at_cern.ch> wrote:
> >> hHisto->GetYaxis()->GetXmax()
Received on Wed Mar 23 2011 - 14:43:02 CET

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