From 56f341f077d4978aec389a18af82d3fc7aee5750 Mon Sep 17 00:00:00 2001 From: Eric Firing Date: Fri, 4 Sep 2015 17:50:13 -1000 Subject: [PATCH] Initialize private attributes in __init__. --- lib/matplotlib/lines.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index b387b8729e86..b5ed9a16bdc5 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -373,6 +373,14 @@ def __init__(self, xdata, ydata, self._yorig = np.asarray([]) self._invalidx = True self._invalidy = True + self._x = None + self._y = None + self._xy = None + self._path = None + self._transformed_path = None + self._subslice = False + self._x_filled = None # used in subslicing; only x is needed + self.set_data(xdata, ydata) def __getstate__(self):