Graph with error

I have ntuple with data x, y, error_y and I want to draw the graph y(x) with mistake y.
As this is made in example root.cern.ch/root/html/examples/gerrors.C.html
How this do :question:
thanks

You can do something like

Long64_t n = tree.Draw("x:y:error","',"goff"); TGraph *g = new TGraph(n,tree.GetV3(),tree.GetV2(),tree.GetV1()); g->Draw("alp");
For more info read doc of TTree::Draw

Rene