Skip to content

Commit 4affd00

Browse files
committed
Fix - log axis drawing with no visible ticks
1 parent cda3196 commit 4affd00

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
1. Fix - toggling of statbox was not working in all situations
55
2. Fix - for mouse rect zooming use only left mouse button
66
3. Fix - correctly draw TH2 with lego option, when histogram has negative bin content
7+
4. Fix - log axis drawing with no visible ticks
78

89

910
## Changes in 4.4.3

scripts/JSRootPainter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3588,7 +3588,8 @@
35883588
lasth = h2;
35893589
}
35903590

3591-
axis_g.append("svg:path").attr("d", res).style("stroke", AxisColor);
3591+
if (res.length > 0)
3592+
axis_g.append("svg:path").attr("d", res).style("stroke", AxisColor);
35923593

35933594
var last = vertical ? h : 0,
35943595
labelfont = JSROOT.Painter.getFontDetails(axis.fLabelFont, Math.round(axis.fLabelSize * (is_gaxis ? this.pad_height() : h))),

0 commit comments

Comments
 (0)