Try using TGraph, something like { gROOT->Reset(); Float_t x[3], y[3]; x[0] = 1.0; y[0] = 2.0; x[1] = 3.0; y[1] = 0.1; x[2] = 6.0; y[2] = 5.0; gr = new TGraph(3,x,y); gr->SetFillColor(19); gr->SetLineColor(2); gr->SetLineWidth(4); gr->SetMarkerColor(4); gr->SetMarkerStyle(21); gr->SetTitle("a simple graph"); gr->Draw("ACP"); TF1 *f1 = new TF1("f1","pol2"); gr->Fit("f1","V"); c1->Update(); }
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET