RE: TAxis strange behaviour

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 23 Mar 2011 13:42:23 +0000


One possible way:

hHisto->GetMaximum()*(1+gStyle->GetHistTopMargin());

-----Original Message-----
From: Simone Bifani
Sent: Wednesday, March 23, 2011 2:35 PM
To: Olivier Couet
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] TAxis strange behaviour

  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:42:29 CET

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