Skip to content

Commit

Permalink
fix #4136 - don't draw ticks corresponding to _linepositions
Browse files Browse the repository at this point in the history
... when mirror isn't 'allticks' as _linepositions gets
    filled in lsInner (in subroutines.js) when mirror is set
    to 'all' OR 'allticks'
  • Loading branch information
etpinard committed Aug 20, 2019
1 parent 8f6e919 commit cc19178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,9 @@ axes.drawOne = function(gd, ax, opts) {
transFn: transFn
});

tickSubplots = Object.keys(ax._linepositions || {});
if(ax.mirror === 'allticks') {
tickSubplots = Object.keys(ax._linepositions || {});
}
}

for(i = 0; i < tickSubplots.length; i++) {
Expand Down
Binary file modified test/image/baselines/mirror-all-vs-allticks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cc19178

Please sign in to comment.