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 e717682 commit 696f0b1Copy full SHA for 696f0b1
lib/matplotlib/ticker.py
@@ -1435,7 +1435,11 @@ def __call__(self, x, pos=None):
1435
xp = (x - self.offset) / (10. ** self.orderOfMagnitude)
1436
if abs(xp) < 1e-8:
1437
xp = 0
1438
- return self._format_maybe_minus_and_locale(self.format, xp)
+ # The ScalarFormatter.__call__ reads the locale here as well. We
1439
+ # don't care about it, and we want the ticks to also get the unit
1440
+ # with the best prefix as computed by self.format_data that is
1441
+ # produced by it doesn't
1442
+ return self.fix_minus(self.format_data(xp))
1443
1444
def set_locs(self, locs):
1445
# docstring inherited
0 commit comments