Re: [ROOT] Automatic y-limits for TF1 in log mode

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Feb 12 2003 - 12:26:44 MET


Hi Ed,

Thanks for reporting this special case.
Now optimized in the CVS version.

We are planning to issue 3.05/02 in the coming few days.

Rene Brun

Ed Oltman wrote:
> 
> Hello,
> 
>  I just switched from 3.03/9a to 3.04/2 on Win32.  The following simple
> script displays differently in the two versions:
> 
> {
>         gROOT->Reset();
>         TCanvas *pc = new TCanvas("pc","an example",1,5,800,500);
>         pc->Divide(2,1);
>         pc->cd(1);
>         TH1F *ph = new TH1F("ph","demo",100,-25.,25.);
>         ph->FillRandom("gaus",10000);
>         ph->Fit("gaus","wq");
>         pc->cd(2);
>         gPad->SetLogy(1);
>         ph->Draw();
> }
> 
> In version 3.03/9a, the y-limts in log mode are about 2 to 2000
> 
> In version 3.04/02, the y-limits in log mode are something like 10^-125 to
> 2000 with multiple y-scales drawn.
> 
> Note: if I draw just the histogram (not the fit), the y-axis limits look the
> same in logy for both versions..
> 
> Ed Oltman



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