[ROOT] log-scale and TH1::Fit

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Mon Oct 29 2001 - 13:47:05 MET


Hello rooters,

I have a histogram which is filled with some data. The get a more
conviniet view of the x-axis I set the bins of the histogram so, that if
I call gPad->SetLogx() I get equidistant bins. Now I want to fit this
view with a gaussian, but TH1::Fit fits the original data instead of the
logarithmic data.

Is it possible to get either the nice view of a log-scaled X-Axis if i
would use equidistant bins and fill the histogram with log(data) or is
it possible to tell the fitter, that it should fit the logarithmic data
instead of the 'real' data in the histogram?

Thanks,
Thomas.



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