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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy