We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2de966 commit daa5ed6Copy full SHA for daa5ed6
lib/matplotlib/ticker.py
@@ -689,9 +689,9 @@ def _compute_offset(self):
689
# are no more than 1 apart at that precision?
690
oom = 1 + next(oom for oom in itertools.count(oom_max, -1)
691
if abs_max // 10 ** oom - abs_min // 10 ** oom > 1)
692
- # Only use offset if it saves at least two significant digits.
+ # Only use offset if it saves at least 4 significant digits.
693
self.offset = (sign * (abs_max // 10 ** oom) * 10 ** oom
694
- if abs_max // 10 ** oom >= 10
+ if abs_max // 10 ** oom >= 10**3 # 10**(4-1)
695
else 0)
696
697
def _set_orderOfMagnitude(self, range):
0 commit comments