8000
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.
2 parents 41fcfd2 + 969808b commit ccd48cbCopy full SHA for ccd48cb
lib/matplotlib/ticker.py
@@ -581,7 +581,7 @@ def _formatSciNotation(self, s):
581
sign = tup[1][0].replace(positive_sign, '')
582
exponent = tup[1][1:].lstrip('0')
583
if self._useMathText or self._usetex:
584
- if significand == '1':
+ if significand == '1' and exponent != '':
585
# reformat 1x10^y as 10^y
586
significand = ''
587
if exponent:
0 commit comments