Skip to content

Commit 677218b

Browse files
committed
Fixes a memory leak where each spines' path was a view of the spine path of the previous run.
1 parent 02870bb commit 677218b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/spines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _adjust_location(self):
247247
else:
248248
low,high = self._bounds
249249

250-
v1 = self._path.vertices[:] # copy
250+
v1 = self._path.vertices.copy()
251251
assert v1.shape == (2,2), 'unexpected vertices shape'
252252
if self.spine_type in ['left','right']:
253253
v1[0,1] = low

0 commit comments

Comments
 (0)