From 21081b53558a2205071def760c257171fe3c1a0a Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Tue, 25 Sep 2018 12:27:40 -0700 Subject: [PATCH] FIX: errorbar xywhere should return ndarray --- lib/matplotlib/axes/_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index e684d93bb5d8..359362a09782 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3148,8 +3148,8 @@ def xywhere(xs, ys, mask): """ assert len(xs) == len(ys) assert len(xs) == len(mask) - xs = [thisx for thisx, b in zip(xs, mask) if b] - ys = [thisy for thisy, b in zip(ys, mask) if b] + xs = np.array([thisx for thisx, b in zip(xs, mask) if b]) + ys = np.array([thisy for thisy, b in zip(ys, mask) if b]) return xs, ys def extract_err(err, data):