Re: [ROOT] Histogram minimum maximum

From: Andreas Salzburger (Andreas.Salzburger@cern.ch)
Date: Wed Jan 22 2003 - 16:43:21 MET


dear rene,

finally it worked with a direct designation in brackets

like

hist->SetMaximum(-1e-8);
hist->SetMinimum(-1e-4);

but not when i declare the values before
(even not if i take Stat_t, Float_t or Double_t ...).
ok, it will produce more code now, but it works!

I just wanted to document what i came across.

Thank you and i already came across the next problem,
but - as always - i try to solve first by my own ...

andi

On Wed, 22 Jan 2003, Luc Perrot wrote:
>  It is logical, because -1e-4 is superior to -1e-8 !

(dear luc, i was thinking about the ordering of -1e-4 <?> -1e-8 longer
than i wanted - it's a mess with a human brain and simple numbers -, to
come finally to the conclusion that -1e-8 > -1e-4, so this could not be
the reason, a.)





> 
> On Wed, 22 Jan 2003, Andreas Salzburger wrote:
> 
> > dear roottalkers,
> > 
> > i'd like to create an empty 1D histogram, in which i try to plot a graph
> > afterwards.
> > The values of my graph are between -1e-4 and -1e-8. But i cant set the
> > maximimum and mimimum like that:
> > 
> > Double_t hist_min = -1e-4;
> > Double_t hist_max = -1e-8;
> > 
> > hist->SetMinimum(hist_min);
> > hist->SetMaximum(hist_max);
> > hist->Draw();
> > 
> > This draws a histogram with hist_min=-1 and hist_max=+1.
> > Has anyone a solution for me?
> > 
> > Thank's in advance
> > Andreas
> > 
> > 
> > 
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:08 MET