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

Skip to content

Commit 17f4b41

Browse files
authored
Missing return in _num_to_string()
Added a missing return statement that caused "None" strings to be displayed with LogFormatter.
1 parent 45f383d commit 17f4b41

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
@@ -975,7 +975,8 @@ def _num_to_string(self, x, vmin, vmax):
975975
s = '%1.0e' % x
976976
else:
977977
s = self.pprint_val(x, vmax - vmin)
978-
978+
return s
979+
979980
def __call__(self, x, pos=None):
980981
"""
981982
Return the format for tick val `x`.

0 commit comments

Comments
 (0)