Hi, simple question:
I’m using several TGraphs and I’m fitting them - works!
Later I’m using these TGraph for adding them to a TMultiGraph.
When I’m doing Draw() to the TMultiGraph all TGraphs appear with all their fits… is there a simple way to draw the TGraphs without the fit?
I already tried mgr->Draw(“alp0”), but seems the “0” has no influence
Thanks
Georg
ROOT Version: 6.28.06
Platform: Windows
Compiler: VS
linev
2
Hi Georg,
If you want to disable painting of fit function, you need to set TF1::kNotDraw
bit.
For each graph you need to do:
TIter iter(gr->GetListOfFunctions());
while (auto obj = iter()) {
if (obj->InheritsFrom(TF1::Class()))
obj->SetBit(TF1::kNotDraw);
}
Regards,
Sergey
Thanks
I will try it tomorrow
Georg
system
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.