Draw("e2") not showing any entries

When I do

root [0] TH1F * hist = new TH1F ("a","a",10,0,10)
root [1] hist->Fill(5)
(Int_t)6
root [2] hist->Draw("E2")

I see a plot drawn but I don’t see any entries. When I change “E2” to “E1” then an entry appears. Why does Draw(“E2”) not work?

root [0] TH1F * hist = new TH1F ("a","a",10,0,10)
root [1] hist->Fill(5)
(Int_t) 6
root [2] hist->SetMarkerStyle(20)
root [3] hist->Draw("E2")

Hi,

one needs "hist->SetFillStyle(0) "

root [0] TH1F * hist = new TH1F ("a","a",100,-10,10);
root [1] hist->FillRandom("gaus",1000);
root [2] hist->SetFillStyle(0) ;     // <<<<<<< 
root [3] hist->Draw("e2");

Olivier I think this should be made the default

If you like filled rectangles:

root [0] TH1F * hist = new TH1F ("a","a",100,-10,10); root [1] hist->FillRandom("gaus",1000); root [2] hist->SetFillStyle(1001); root [3] hist->SetFillColor(2); root [4] hist->Draw("e2"); I

Cheers
Otto

Yes, actually it is quite clear in the doc:
root.cern.ch/root/html534/TGraph … html#GP03b