Skip to content

Commit 1c5ee87

Browse files
Matt Limaxalbert
authored andcommitted
Ensure that IdentityTransform always returns an array.
1 parent df3530d commit 1c5ee87

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
@@ -1944,7 +1944,7 @@ def get_matrix(self):
19441944
get_matrix.__doc__ = Affine2DBase.get_matrix.__doc__
19451945

19461946
def transform(self, points):
1947-
return points
1947+
return np.asanyarray(points)
19481948
transform.__doc__ = Affine2DBase.transform.__doc__
19491949

19501950
transform_affine = transform

0 commit comments

Comments
 (0)