Skip to content

Commit cc19178

Browse files
committed
fix #4136 - don't draw ticks corresponding to _linepositions
... when mirror isn't 'allticks' as _linepositions gets filled in lsInner (in subroutines.js) when mirror is set to 'all' OR 'allticks'
1 parent 8f6e919 commit cc19178

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/plots/cartesian/axes.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,9 @@ axes.drawOne = function(gd, ax, opts) {
17591759
transFn: transFn
17601760
});
17611761

1762-
tickSubplots = Object.keys(ax._linepositions || {});
1762+
if(ax.mirror === 'allticks') {
1763+
tickSubplots = Object.keys(ax._linepositions || {});
1764+
}
17631765
}
17641766

17651767
for(i = 0; i < tickSubplots.length; i++) {
-238 Bytes
Loading

0 commit comments

Comments
 (0)