8000 Merge pull request #8594 from FedeMiorelli/patch-1 · matplotlib/matplotlib@e273f7e · GitHub
[go: up one dir, main page]

Skip to content

Commit e273f7e

Browse files
committed
Merge pull request #8594 from FedeMiorelli/patch-1
FIX: Missing return in LogFormatter._num_to_string()
1 parent 4308d39 commit e273f7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,8 @@ def _num_to_string(self, x, vmin, vmax):
949949
s = '%1.0e' % x
950950
else:
951951
s = self.pprint_val(x, vmax - vmin)
952-
952+
return s
953+
953954
def __call__(self, x, pos=None):
954955
"""
955956
Return the format for tick val `x`.

0 commit comments

Comments
 (0)
0