-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG: Fix NonUniformImage with nonlinear scale #27964
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
Conversation
ec55244
to
3c581ad
Compare
Hi, would appreciate having someone look over this PR whenever you have the chance. Thanks! |
lib/matplotlib/tests/test_image.py
Outdated
ax.set_yscale("log") | ||
if i == 2: | ||
ax.set_xscale("log", base=2) | ||
ax.set_yscale("log", base=3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it seems like the two bottom figures are identical?
Can you change so that the x-scale has base 3 instead? In that way it may be easier to see that it actually makes a difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change the logic for picking pixel centers in this PR, so changing the base doesnt alter the image visually
3c581ad
to
68ba589
Compare
68ba589
to
919a6cb
Compare
PR summary
Fixes a bug with NonUniformImage, where the image distorts when panning with a
nonlinear scale. Also addresses #13442, so the image correctly renders when the axes
scale changes.
Closes #27820.
PR checklist