@@ -1267,14 +1267,17 @@ TFitResultPtr TGraph::Fit(TF1 *f1, Option_t *option, Option_t *goption, Axis_t r
12671267}
12681268
12691269// //////////////////////////////////////////////////////////////////////////////
1270- // / Fit this graph with function with name `fname`.
1270+ // / Fit this graph with the global function named `fname`.
12711271// /
1272- // / This is a different interface to TGraph fitting using TGraph::Fit(TF1 *f1,Option_t *, Option_t *, Axis_t, Axis_t)
1273- // / See there for the details about fitting a TGraph.
1272+ // / This will retrieve the function with name `fname` from ROOT's global list of functions, and use it to
1273+ // / fit the data in the TGraph.
1274+ // / TF1 or TF2 functions that have been created in the same ROOT session can be accessed using `fname`.
1275+ // / Predefined functions such as gaus, expo, poln, etc. are automatically created by ROOT.
1276+ // / @see TF1::InitStandardFunctions, TF2::InitStandardFunctions, TF3::InitStandardFunctions
12741277// /
1275- // / The parameter `fname` is the name of an already predefined function created by TF1 or TF2
1276- // / Predefined functions such as gaus, expo and poln are automatically
1277- // / created by ROOT .
1278+ // / Note that using a global function is not thread safe. In this case, use the overload
1279+ // / TGraph::Fit(TF1 *f1,Option_t *, Option_t *, Axis_t, Axis_t) with a locally created function.
1280+ // / For more details about fitting a TGraph, see the same overload .
12781281// /
12791282// / The parameter `fname` can also be a formula, accepted by the linear fitter (linear parts divided
12801283// / by "++" sign), for example "x++sin(x)" for fitting "[0]*x+[1]*sin(x)"
0 commit comments