{ TGraphErrors *gr = new TGraphErrors(2); gr->SetPoint(0,0,0); gr->SetPoint(1,1,1); gr->SetPointError(0,.0002,.2);//why do I need 0.0002 to make a plot gr->SetPointError(1,0,.3); gr->SetMarkerStyle(21); gr->Draw("ap"); TLegend *leg = new TLegend(0.4,0.8,0.7,1); leg->AddEntry(gr,"no error lines","pe"); leg->AddEntry(gr,"The horizonal lines, why?","pel"); leg->Draw(); }