{ TCanvas *c1 = new TCanvas("c1","A Simple Graph Example",200,10,700,500); Double_t x[100], y[100]; Int_t n = 20; for (Int_t i=0;iDraw("AC*"); gr->Draw(); gr->SetLineColor(kRed); gr->SetLineWidth(2); c1->BuildLegend(); c1->Modified(); return c1; }