{ gROOT->ProcessLine(".L tf.cpp+"); Double_t x[] = {1., 2., 3.}; Double_t y[] = {2., 3., 4.}; Double_t ex[] = {0., 0., 0.}; Double_t ey[] = {0.2, 0.3, 0.4}; TGraphErrors tge(3, x, y, ex, ey); TF1* f1 = new TF1("f1",tf,0.,2.,2); f1->SetParameters(1.,2.); tge.Fit("f1"); tge.Draw("A*"); f1->FixParameter(0,1.); tge.Fit("f1"); TPaveStats *st = (TPaveStats*)tge->FindObject("stats"); if(st){ st->SetName("myStats"); TList *list = st->GetListOfLines(); TText *p1 = st->GetLineWith("RMS"); list->Remove(p1); st->Modify(); st->Print(); } }