| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e717682 commit 696f0b1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1435,7 +1435,11 @@ def __call__(self, x, pos=None): | |||
| 1435 | 1435 | xp = (x - self.offset) / (10. ** self.orderOfMagnitude) | |
| 1436 | 1436 | if abs(xp) < 1e-8: | |
| 1437 | 1437 | xp = 0 | |
| 1438 | - return self._format_maybe_minus_and_locale(self.format, xp) | ||
| 1438 | + # 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)) | ||
| 1439 | 1443 | ||
| 1440 | 1444 | def set_locs(self, locs): | |
| 1441 | 1445 | # docstring inherited | |
| Back | FazBrowse Home | New Git URL |
0 commit comments