8000 Initialize private attributes in __init__. · matplotlib/matplotlib@56f341f · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56f341f

Browse files
committed
Initialize private attributes in __init__.
1 parent 3c2c037 commit 56f341f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/lines.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,14 @@ def __init__(self, xdata, ydata,
373373
self._yorig = np.asarray([])
374374
self._invalidx = True
375375
self._invalidy = True
376+
self._x = None
377+
self._y = None
378+
self._xy = None
379+
self._path = None
380+
self._transformed_path = None
381+
self._subslice = False
382+
self._x_filled = None # used in subslicing; only x is needed
383+
376384
self.set_data(xdata, ydata)
377385

378386
def __getstate__(self):

0 commit comments

Comments
 (0)
0