{ gROOT->Reset(); c1 = new TCanvas("c1","A Simple Graph with error bars",200,10,700,500); c1->SetGrid(); c1->SetLogx(); c1->SetLogy(); Int_t n = 13; Float_t x[n] = {1,3,5,7,10,30,50,70,100,300,500,700,1000}; Float_t y[n] = {4.62,44.5,115,205,400,2413,5339,9097,15515,73328,143943,221128,337753}; Float_t exl[n] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; Float_t eyl[n] = {3,3,3,3,3,3,3,3,3,3,3,3,3}; Float_t exh[n] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; Float_t eyh[n] = {0,0,0,0,0,0,0,0,0,0,0,0,0}; gr = new TGraphAsymmErrors(n,x,y,exl,exh,eyl,eyh); gr->SetTitle("equal error length"); gr->SetMarkerColor(4); gr->SetMarkerStyle(21); gr->Draw("AP>"); c1->Update(); }