Skip to content

Commit 7c6e057

Browse files
authored
Merge pull request matplotlib#24847 from QuLogic/affine-perf
Avoid extra copy initializing empty Affine2D
2 parents bcfd5e6 + a532bf1 commit 7c6e057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ def __init__(self, matrix=None, **kwargs):
18901890
super().__init__(**kwargs)
18911891
if matrix is None:
18921892
# A bit faster than np.identity(3).
1893-
matrix = IdentityTransform._mtx.copy()
1893+
matrix = IdentityTransform._mtx
18941894
self._mtx = matrix.copy()
18951895
self._invalid = 0
18961896

0 commit comments

Comments
 (0)