Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a340546

Browse files
committed
Ensure that 'points' is an array to avoid errors when indexing (completes fix for #3809).
1 parent 9d58652 commit a340546

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)