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

From: Ed Oltman (eoltman@imago.com)
Date: Wed Feb 12 2003 - 00:13:13 MET


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