Re: [ROOT] Option '0' of TH1::Fit seems changed to 'N'.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Feb 21 2001 - 16:46:19 MET


Hi Yannick,
In version 3.00/05, I have activated the fit option "0".
When this option is selected, the function is stored in the list
of functions of the histogram, but it is not drawn.
If you want to see the function, do not select this option.

Rene Brun

Patois Yannick wrote:
> 
> Hi rooters,
> 
> On root version 3.00.05 (linux ix86), the following code display the
> histogram *without* showing the function on it. On previous versions of
> root the fitting function was added:
> 
> {
>   TH1F *h1f=new TH1F("h1f","test",100,-10,10);
>   h1f->FillRandom("gaus",10000);
>   TF1 *f1=new TF1("f1","gaus",-1.5,1.5);
>   h1f->Fit("f1","R0");
>   h1f->Draw();
> }
> 
>         Yannick



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET