[ROOT] Re: several histograms

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Sep 17 2002 - 10:40:38 MEST


Hi Christian,

Use a stack of histograms via THStack.
See examples in $ROOTSYS/tutorials/hstack.C

Rene Brun

On Tue, 17 Sep 2002, Christian Hansen wrote:

> 
> Dear Rooters,
> 
> I would like to know how to auto-scale
> a canvas where I've plotted several
> histograms in.
> For the moment, when I plot histogram h0
> with Draw() and then other histograms on
> top of the first one with Draw("SAME") the
> y-scale is still fixed for h0 and if the
> other histograms are 'bigger' then h0 they
> go above the roof. Is there any automatic
> way to "auto-scale" the y-scale after 
> the 'biggest' histogram (even though I do 
> not have the information which of the 
> histograms that is the biggest)?
> 
> Cheers
> / Christian Hansen
> 
> ===============================================
> 161-01-016            Office: +41-(0)22-7677598
> CERN              
> CH-1211 Geneve 23
> Switzerland
> -----------------------------------------------
> Mobile    : +41-(0)79-7742530
> Home Page : http://welcome.to/Christian_Hansen
>             http://cern.ch/Christian.Hansen
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET