8000 Fix log transforms (fixes #3809) [back port to 1.4.x] by maxalbert · Pull Request #3863 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix log transforms (fixes #3809) [back port to 1.4.x] #3863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 9, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Even with the fix for single-point transforms (77ccc82) it's better t…
…o ensure we have a 2D array to avoid further case distinctions below.
  • Loading branch information
maxalbert committed Dec 4, 2014
commit 9dcc1fa5c63083f4b63275ab6b7cd329b70d3413
2 changes: 1 addition & 1 deletion lib/matplotlib/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,7 @@ def __repr__(self):
return "BlendedGenericTransform(%s,%s)" % (self._x, self._y)

def transform_non_affine(self, points):
points = np.asanyarray(points)
points = np.asanyarray(points).reshape((-1, 2))

if self._x.is_affine and self._y.is_affine:
return points
Expand Down
0