Below is an image produced by a drawing macro. The bottom pad histogram appears to be drawn incorrectly.
This histogram has uniform bin widths except for the two highest energy bins, which are larger.
The axis are created using
TH1F *hr1 = pad->DrawFrame(0.0, -3.0, 5.0, 3.0);.
A TLine object is then drawn followed by a histogram with the option
I don’t know why ROOT would draw the two ends of the histogram with these vertical lines. I don’t know where they go to, but I assume it is -infinity.
I tried drawing with the option
][histsame. But that looked strange because the edges were missing.
Is there some kind of workaround?
I’ve not noticed this before, but I only recently changed my code to use non-uniform binning. Previously the histogram was defined with bins over the full x-axis range: 0.0 to 5.0. Now it is defined fom 0.3 to 3.5.
I would assume this has nothing to do with the over/underflow bins since these should contain zero.
Here is a list of corresponding bin content values.
PULL i=1 content=0.817964 PULL i=2 content=-0.363984 PULL i=3 content=-1.97934 PULL i=4 content=0.41355 PULL i=5 content=2.40882 PULL i=6 content=1.74799 PULL i=7 content=-1.49012 PULL i=8 content=-0.140457 PULL i=9 content=-0.466029 PULL i=10 content=-0.0590581 PULL i=11 content=2.44735 PULL i=12 content=0.19361 PULL i=13 content=-0.175366 PULL i=14 content=0.0592941
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided