When I draw a histogram with the option “E0 P” on a log-y axis, I notice that the points for bins with zero entries in them are drawn on the bottom of the y-axis. Please see the example code below, which produced the attached file text.pdf.
test.pdf (15.9 KB)
The plot on the left, with a linear y-axis, behaves as expected. For bins with zero entries, the points are not visible, but the poisson error bars are visible. The plot on the right is a similar plot, but with a log y axis. The error bars are fine, but for some reason the points for empty bins are drawn, in this case at y=1, which is wrong. Is this a bug?
I am using root version 6.02/00
TCanvas *c1 = new TCanvas(“c1”,"",800,800);
TH1D * h1 = new TH1D(“h1”,“h1”,50,-4,4);
TH1D * h2 = new TH1D(“h2”,“h2”,50,-4,4);