Re: [ROOT] Plotting TF1 on a log scale

From: Bram Wijngaarden (dwijngaa@hef.kun.nl)
Date: Fri Jun 13 2003 - 16:33:31 MEST


Hi Rene,

Unfortunately, updating my local version did not help. I updated according
to the instructions and the interpreter does give today's date - any idea
what could still be wrong?

Thanks,
Bram

> -------- Original Message --------
> Subject: Re: [ROOT] Plotting TF1 on a log scale
> Date: Fri, 13 Jun 2003 14:32:37 +0200
> From: Rene Brun <Rene.Brun@cern.ch>
> Reply-To: Rene Brun <Rene.Brun@cern.ch>
> To: Bram Wijngaarden <dwijngaa@hef.kun.nl>
> CC: roottalk@cern.ch
> References: <Pine.LNX.4.55.0306131422500.23811@wheaton.hef.kun.nl>
>
> Hi Bram,
>
> This problem was fixed a few days ago in the CVS version.
>
> Rene Brun
>
> Bram Wijngaarden wrote:
> >
> > Hi,
> >
> > I used to be able to plot functions on a log scale but recently I get the
> > "Error in <THistPainter::PaintInit>: log scale requested with zero or
> > negative argument (0.000000)" error when I try to do this. Is this a bug,
> > a feature, and more importantly, how do I get around it?
> >
> > Sample code snippet:
> >
> > new TCanvas();
> > TF1* test = new TF1("test", "gaus", -10, 10);
> > test->SetParameters(100, 0, 1);
> > test->Draw(); // OK
> > gPad->SetLogy();
> > test->Draw(); // Not OK
> >
> > Thanks,
> > Bram
> >
> > -
> > D.A. Wijngaarden        Meijhorst 6422
> > AiO KUN-EHEF            6537 LE Nijmegen
> > Experiment: D0          The Netherlands
> > Work phone: +31 24 365 2822
> > Fax: +31 24 365 2191
> > "Fuimus" - Robert the Bruce
>
>

-
D.A. Wijngaarden	Meijhorst 6422
AiO KUN-EHEF		6537 LE Nijmegen
Experiment: D0		The Netherlands
Work phone: +31 24 365 2822
Fax: +31 24 365 2191
"Fuimus" - Robert the Bruce



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