Skip to content

Commit

Permalink
revert commit 765ca5a
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jul 26, 2019
1 parent fde0d32 commit 096ed73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,7 @@ function autoTickRound(ax) {
// 2 digits past largest digit of dtick
ax._tickround = 2 - Math.floor(Math.log(dtick) / Math.LN10 + 0.01);

var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1])) || 1;

var maxend = Math.max(Math.abs(rng[0]), Math.abs(rng[1]));
var rangeexp = Math.floor(Math.log(maxend) / Math.LN10 + 0.01);
if(Math.abs(rangeexp) > 3) {
if(isSIFormat(ax.exponentformat) && !beyondSI(rangeexp)) {
Expand Down

0 comments on commit 096ed73

Please sign in to comment.