From 2203a43c4c23b6a1890c2b0dbf712fe0b104e528 Mon Sep 17 00:00:00 2001 From: Joscha Reimer Date: Thu, 15 Nov 2018 11:47:22 +0100 Subject: [PATCH] BUG: subs in LogLocator are now casted to an one dimensional array --- lib/matplotlib/ticker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 81a2ebfe81d4..52208e18992a 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -2127,7 +2127,7 @@ def subs(self, subs): "found '%s'." % subs) self._subs = subs else: - self._subs = np.asarray(subs, dtype=float) + self._subs = np.array(subs, dtype=float, copy=False, ndmin=1) def __call__(self): 'Return the locations of the ticks'