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

Skip to content

Commit 74fa27b

Browse files
authored
Merge pull request #8594 from FedeMiorelli/patch-1
FIX: Missing return in LogFormatter._num_to_string()
2 parents 963faed + 17f4b41 commit 74fa27b

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)
0