Fit parameters in the statistics box

Hi,
I’m fitting a function to a histogram, but I don’t want the fitted function to be drawn, so I use option “N” when fitting. This seems to work fine.

However, I do want the chi squared and the parameters displayed on the histogram, preferably in the statistics box. I was using
gStyle -> SetOptFit();
but this doesn’t work once the “N” option is specified.

Is there any way of getting around this problem?

Also, is there any way of controlling which fit parameters appear in the statistics box when SetOptFit() is called?

Thank you
Kim

Dont use option “N”, use “0” => root.cern.ch/root/htmldoc//TH1.html#TH1:Fit

[quote]
Also, is there any way of controlling which fit parameters appear in the statistics box when SetOptFit() is called? [/quote]
root.cern.ch/root/htmldoc//src/T … :SetOptFit

gStyle->SetOptFit(1111); // => full info

Jan

Hey,

I have the same problem but with a TH3. I set everything how it should be, and for the TH2 and TH1 it works pretty good. But for some reasons I see no statistics box nor the additions for the fit results on my TH3. Is there some problem with TH3’s and the statistics box that one should know?

thanks,
Chris

The drawing of the stats and fit box for a TH3 was not implemented.
I have implemented it today in the CVS head.

Rene

Ah, that’s great. Thank you very much.

Have a nice Sunday,
Chris