Cannot fit graph

It seems that we are talking about different macros …
I tried the last one that you posted, i.e. the “intensity”.
You seem to be talking about the first one that you posted, i.e. “Calibration”. In this macro, use:

graph->Fit(fit, "WQN"); // "initial pre-fit"
graph->Fit(fit); // "final fit"
1 Like