Skip to content

Commit 074570e

Browse files
committed
Remove the copy altogether. Testing reveals that it isn't necessary.
1 parent 677218b commit 074570e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/spines.py

Lines changed: 1 addition & 2 deletions
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
251251
assert v1.shape == (2,2), 'unexpected vertices shape'
252252
if self.spine_type in ['left','right']:
253253
v1[0,1] = low
@@ -257,7 +257,6 @@ def _adjust_location(self):
257257
v1[1,0] = high
258258
else:
259259
raise ValueError('unable to set bounds for spine "%s"'%spine_type)
260-
self._path.vertices = v1 # replace
261260

262261
@allow_rasterization
263262
def draw(self, renderer):

0 commit comments

Comments
 (0)