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?
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?