Skip to content

Commit

Permalink
fix break overlaps on reversed ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Oct 8, 2020
1 parent 33b73ef commit ab6b57a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
(prevL > l - fontSize) :
(prevL < l + fontSize)
) { // ensure one pixel minimum
tickVals.splice(i, 1);
tickVals.splice(axrev ? i + 1 : i, 1);
} else {
prevL = l;
}
Expand Down
Binary file modified test/image/baselines/axes_breaks-overlap.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 ab6b57a

Please sign in to comment.