Skip to content

Commit

Permalink
Fix - tooltip for empty bin with set error
Browse files Browse the repository at this point in the history
Like in drawing, also tooltip must be handled correctly
  • Loading branch information
linev committed Oct 30, 2024
1 parent 4fbe7aa commit 0961186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hist2d/TH1Painter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ class TH1Painter extends THistPainter {
findbin = null;
else if ((pnt_x < grx1 - gapx) || (pnt_x > grx2 + gapx))
findbin = null; // if bars option used check that bar is not match
else if (!this.options.Zero && (histo.getBinContent(findbin+1) === 0))
else if (!this.options.Zero && (histo.getBinContent(findbin+1) === 0) && (!histo.fSumw2 || !histo.fSumw2[findbin+1]))
findbin = null; // exclude empty bin if empty bins suppressed
}

Expand Down

0 comments on commit 0961186

Please sign in to comment.