Fitting graphs with error bars

Hello I am having trouble finding the command to fit a graph with error bars, TGraphError. I currently have this:
f = new TF1(“f”,“pol6”, 0, 5);
gt->Fill(f);
It says that for TGraphError there is no member named Fill.

https://root.cern/doc/v622/classTGraphErrors.html

Hi,
is that a typo Fill/Fit?

Cheers,
Enrico

Which is true… the right spelling is Fit(...)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.