Problem in fitting (in function!)

@couet There is also another problem that I found. According to the “How to set ranges on axis?”, one should be able to use TAxis::SetLimits BEFORE the graph is drawn. This does not work here at all. I needed the following (note: no “pcol” at all so it’s another problem):

g->Draw("surf3"); // it MUST be drawn first
gPad->Modified(); gPad->Update(); // one MUST make sure it's really (re)drawn
g->GetXaxis()->SetLimits(50., 200.); // now one can change it
gPad->Modified(); gPad->Update(); // make sure it's really (re)drawn

BTW. TAxis::SetRangeUser also needed canvas “Update” before it could be used (which is not mentioned in the “How to set ranges on axis?” at all).