Re: How to set Y axis range

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Mar 21 2000 - 21:13:21 MET


Hi Jayoung,
Let's assume a TH1F *h1, *h2;
Do:
h1->SetMaximum(max);
h1->SetMinimum(min);
h1->Draw();
h2->Draw("same");

Rene Brun

On Tue, 21 Mar 2000, Jayoung Wu wrote:

> Hi,
> 
> I have a 1d histogram h1. To overlap with another 1d histogram h2 I'd like
> to change yaxis range of h1 so that I have same y axis range for both h1
> and h2.
> Could you show me how to handle this?  
> 
> ---
> Thanks,
> Jayoung
>  
> Or Is there any way to plot two 1d histograms in one plot?
> 
>  
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET