{ TH1D *hist = new TH1D("hist","test histogram",6,-0.5,5.5); for(int i=0;i<6;i++) hist->SetBinContent(i+1,i); hist->SetStats(false); hist->SetBinErrorOption(TH1::kPoisson); hist->SetLineWidth(2); hist->SetMarkerStyle(20); hist->Draw("e0"); }