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:36 MET