Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ksunden merged 2 commits intomatplotlib:mainfromtrananso:fix-logscale-axis
Apr 17, 2024

Conversation

trananso
Copy link
Contributor

@tranansotrananso commentedMar 22, 2024
edited
Loading

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

@tranansotrananso changed the titleFix non uniform image if x or y axis are log scaleFix NonUniformAxis if x or y axis are log scaleMar 22, 2024
@tranansotrananso changed the titleFix NonUniformAxis if x or y axis are log scale[BUG] Fix NonUniformAxis if x or y axis are log scaleMar 22, 2024
@tranansotrananso changed the title[BUG] Fix NonUniformAxis if x or y axis are log scaleBUG: Fix NonUniformAxis if x or y axis are log scaleMar 22, 2024
@tranansotrananso changed the titleBUG: Fix NonUniformAxis if x or y axis are log scaleBUG: Fix NonUniformImage if x or y axis are log scaleMar 22, 2024
@tranansotrananso changed the titleBUG: Fix NonUniformImage if x or y axis are log scaleBUG: Fix NonUniformImage with nonlinear scaleMar 26, 2024
@tranansotrananso marked this pull request as ready for reviewMarch 26, 2024 18:48
@trananso
Copy link
ContributorAuthor

Hi, would appreciate having someone look over this PR whenever you have the chance. Thanks!

ax.set_yscale("log")
if i == 2:
ax.set_xscale("log", base=2)
ax.set_yscale("log", base=3)
Copy link
Member

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?

Copy link
ContributorAuthor

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

@tacaswelltacaswell requested a review fromksundenApril 15, 2024 14:25
@tacaswelltacaswell added this to thev3.10.0 milestoneApr 15, 2024
@ksundenksunden merged commit98506d0 intomatplotlib:mainApr 17, 2024
28 of 33 checks passed
@tranansotrananso deleted the fix-logscale-axis branchApril 17, 2024 15:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@oscargusoscargusoscargus left review comments

@tacaswelltacaswelltacaswell approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.10.0
Development

Successfully merging this pull request may close these issues.

[Bug]: Logscale Axis + NonUniformImage + GUI move tool = Distortion
4 participants
@trananso@tacaswell@ksunden@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp