do you know the option to disable the the default canvas created during a fit?
I tried these options as 2d argument “N” or “O” without success. This is a piece of code[1]:
By doing that a default canvas with the histogram and the fit is created, and I want to disable this option?
I also tried: hrsp->GetFunction(“gaus”)->ResetBit(kNotDraw);
but then I have the error message:
use of undeclared identifier 'kNotDraw’
hrsp->GetFunction(“gaus”)->ResetBit(kNotDraw);
Use “Q0”, not “QO”.
See also the ‘Warning when using the option “0”’ in the TH1::Fit method description and use:
const Int_t kNotDraw = TF1::kNotDraw;
or simply:
hrsp->GetFunction(“gaus”)->ResetBit(TF1::kNotDraw);
At least “gaus.data()” should be replaced with “gaus.c_str()”.
Note also that you are expected to initialize all three function’s parameters before trying to use it (this is not the case if you use the predefined “gaus”).