8000 Even with the fix for single-point transforms (77ccc8230) it's better… · luoq/matplotlib@9dcc1fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 9dcc1fa

Browse files
committed
Even with the fix for single-point transforms (77ccc82) it's better to ensure we have a 2D array to avoid further case distinctions below.
1 parent b5685f4 commit 9dcc1fa

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
@@ -2040,7 +2040,7 @@ 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)
2043+
points = np.asanyarray(points).reshape((-1, 2))
20442044

20452045
if self._x.is_affine and self._y.is_affine:
20462046
return points

0 commit comments

Comments
 (0)
0