Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9dcc1fa

Browse filesBrowse 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
Copy full SHA for 9dcc1fa

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.