From 17f4b4154a8b76b3a23016a008097f9afac4f433 Mon Sep 17 00:00:00 2001 From: FedeMiorelli Date: Mon, 8 May 2017 16:29:22 +0200 Subject: [PATCH] Missing return in _num_to_string() Added a missing return statement that caused "None" strings to be displayed with LogFormatter. --- lib/matplotlib/ticker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index ae16a696b500..cccdae2dbb5d 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -975,7 +975,8 @@ def _num_to_string(self, x, vmin, vmax): s = '%1.0e' % x else: s = self.pprint_val(x, vmax - vmin) - + return s + def __call__(self, x, pos=None): """ Return the format for tick val `x`.