Thanks to visit codestin.com
Credit goes to github.com

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)