Fit statistics from two fits of the same TGraph

I suggest the following procedure:

[code]{
gStyle->SetOptFit(1111);
float x[5]={1,2,3,4,5};
float y[5]={1,2,5,4,5};

TGraph *gr = new TGraph(5,x,y);
gr->SetMarkerStyle(20);
gr->SetMarkerSize(1.3);
gr->SetMarkerColor(2);
gr->Fit(“pol1”,“Q”);
gr->DrawClone(“ap”);
gr->Fit(“pol2”,“Q”);
gr->Draw(“p”);
gPad->Update(); //to force the creation of "stats"
TPaveStats st = (TPaveStats)gr->FindObject(“stats”);
st->SetX1NDC(0.2); //new x start position
st->SetX2NDC(0.5); //new x end position
gPad->Modified();
}
[/code]

Rene