Re: problem with the range of Y axis

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 25 Mar 2006 08:56:11 +0100 (MET)


You can force the minimum to be 0 for one histogram via

    h.SetMinimum(0);
or force the minimum to be always 0 for all histograms via

    gStyle->SetHistMinimumZero();

see:
http://root.cern.ch/root/htmldoc//TStyle.html#TStyle:SetHistMinimumZero

Rene Brun

On Sat, 25 Mar
2006, Xianguo Lu wrote:

>
> Dear Rooters,
>
> I filled a TH1F in such a way that the upper range of Y axis goes to about 18000. Whoever, in the graph, the Y axis starts from 1500. How can I do to make the Y axis start from 0?
>
>
> Thank you in advance.
>
> Cheers!
>
> Xianguo Lu
Received on Sat Mar 25 2006 - 08:56:23 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET