Skip to content

Commit 46083bf

Browse files
committed
FIX more fixes for tickers
1 parent d52675f commit 46083bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/ticker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -905,11 +905,11 @@ def __call__(self, x, pos=None):
905905
coeff = np.round(abs(x) / b ** exponent)
906906
if coeff in self.sublabel:
907907
if not isDecade and self.labelOnlyBase:
908-
s = ''
908+
return ''
909909
elif x > 10000:
910-
s = '%1.0e' % x
910+
s = '%1.0e' % abs(x)
911911
elif x < 1:
912-
s = '%1.0e' % x
912+
s = '%1.0e' % abs(x)
913913
else:
914914
s = self.pprint_val(x, self.d)
915915
if sign == -1:

0 commit comments

Comments
 (0)