Skip to content

Commit

Permalink
Initialize private attributes in __init__.
Browse files Browse the repository at this point in the history
  • Loading branch information
efiring committed Sep 5, 2015
1 parent 3c2c037 commit 56f341f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 56f341f

Please sign in to comment.