{ auto c = new TCanvas("c","TGraph2DErrors example",0,0,600,600); Double_t P = 6.; const Int_t np = 200; std::vector rx(np), ry(np), rz(np), ex(np), ey(np), ez(np); TRandom r; for (Int_t N=0; NSetTitle("TGraph2D with error bars: option \"ERR\""); g->SetFillColor(29); g->SetMarkerSize(0.8); g->SetMarkerStyle(20); g->SetMarkerColor(kRed); g->SetLineColor(kBlue-3); g->SetLineWidth(2); gPad->SetLogy(1); g->Draw("err p0"); }