[ROOT] Re: Problem in SetRange.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 29 2004 - 10:09:34 MEST


Use h->SetMinimum(0);
instead of TAxis::setRange

Rene Brun

Avi Malki wrote:
> 
>  Hi all,
> 
>  in the attached figures you see 4 histograms. The histogram at the right
>  side at the bottom is the difference of the two histograms in the left
>  bottom. Note that some bins in the histogram at the right side at the
>  bottom are negative, therefore the x-axis is not y=0, but y=-3. If I
>  choose a range in this histogram with the command setRange like depicted
>  in figure fig_3.ps then Root draws the limits of the range down to the
>  x-axis and not only down to y=0. However, Root fills the chosen bins
>  correctly down to y=0.
> 
>  Isn't this a bug?
> 
>  I use : ROOT Version   2.22/09.
>        : Linux red hat 7.3.
> 
>    Best regards,
>     Avi.
> 
> -------------------------------------------------------------------
> Avi Malki
> Department of Nuclear Physics
> School of Physics and Astronomy
> Tel-Aviv University
> Israel
> 
> University  -  Phone : 972-3-6407415     Fax : 972-3-6406369
> Home        -  Phone : 972-3-5081734
> 
> E-Mail: malki@tauphy.tau.ac.il
> WWW   : http://www-nuclear.tau.ac.il/~malki/
> -------------------------------------------------------------------
> 
>   --------------------------------------------------------------------------------
>                Name: fig_1.ps
>    fig_1.ps    Type: Postscript Document (APPLICATION/PostScript)
>            Encoding: BASE64
> 
>                Name: fig_3.ps
>    fig_3.ps    Type: Postscript Document (APPLICATION/PostScript)
>            Encoding: BASE64



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET