Re: [ROOT] TH1F automatic y-axis setting

From: schulte-wissermann (schulte@pktw09.phy.tu-dresden.de)
Date: Wed Sep 01 2004 - 16:09:32 MEST


hi,
 is it really true that i have to use SetMinimum(0) for each of my histos
in order to keep the y-axis at zero? no other way? am i the only person
that complains? for me, the 'old' way is much more 'natural'!
just a simple example: you fill a spectrum randomly (uniform). what 
you then teach your students is that - as you keep on filling - the
relative error gets smaller and the distribution finally looks flat.
what you now see is that the absolute error increases, which is nice to 
know, but does not help. 
btw, we have at least 10^5 histos distributed over about 200 
macros/programs in our analysis code.
so again the question: can i set the minimum in my .rootrc/.rootlogon/...? 

cheers,
   martin     


On Wed, 1 Sep 2004, Olivier Couet wrote:

> 
> Hi,
> 
>  Yes the behavior has changed. You can see it also when you plot a 
> subrange of the X axis. The way to get back the old behavior is to set 
> the minimum to zero.
> 
> Cheers,    Olivier
> 
> 
> On Tue, 31 Aug 2004, schulte-wissermann wrote:
> 
> > hi,
> >  since i use root you Fill(...) a histo, and then you Draw() it.
> > since v4.xx the TH1F behaviour seems to be different: it automatically
> > is updated when filled, and 
> >              => it's minimum does not remain 0 <=
> > how can force root to keep the histo's minimum at zero
> > (without using SetMinimum(0) for each of my histos;
> >                               maybe something in my .rootrc?)
> > 
> > greetigs,
> >  martin
> > 
> > ps: gcc 3.xx, root_v4.00.08
> > 
> > 
> 
> -- 
> Org:    CERN - European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
> E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
> WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155
> 
> 



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