8000 Ensure that 'points' is an array to avoid errors when indexing (compl… · matplotlib/matplotlib@b5685f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5685f4

Browse files
Matt Limaxalbert
authored andcommitted
Ensure that 'points' is an array to avoid errors when indexing (completes fix for #3809).
1 parent 1c5ee87 commit b5685f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/transforms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,6 +2040,8 @@ def __repr__(self):
20402040
return "BlendedGenericTransform(%s,%s)" % (self._x, self._y)
20412041

20422042
def transform_non_affine(self, points):
2043+
points = np.asanyarray(points)
2044+
20432045
if self._x.is_affine and self._y.is_affine:
20442046
return points
20452047
x = self._x

0 commit comments

Comments
 (0)
0