Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Respect vertical_axis when rotating plot interactively #28039

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 5 commits into from
May 1, 2024

Conversation

Illviljan
Copy link
Contributor

@Illviljan Illviljan commented Apr 7, 2024

PR summary

In #25821 view_init was added in ax._on_move without all the arguments. This meant that the initial plot looked as intended with vertical_axis="x", but once the plot was rotated interactively the vertical_axis was reset back to the default position.

PR checklist

@Illviljan Illviljan marked this pull request as ready for review April 7, 2024 15:06
@tacaswell tacaswell requested a review from scottshambaugh April 8, 2024 15:32
Copy link
Contributor

@scottshambaugh scottshambaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for catching this! Not sure if a bugfix warrants a what's new, but not a big deal either way.

@oscargus oscargus added this to the 3.9.1 milestone Apr 15, 2024
@oscargus
Copy link
Member

oscargus commented Apr 15, 2024

Bug fixes usually do not get a "What's new", so if you remove that I'd be happy to merge this. Thanks!

(Edit: as this was introduced in 3.8, I suggest to backport to 3.9.10. Hence the marking.)

@oscargus oscargus modified the milestones: 3.9.1, v3.9.0 Apr 15, 2024
@scottshambaugh
Copy link
Contributor

You'll have to rebase squash your commits to pass the PR cleanliness check, but I think the other CI failures are unrelated.

@Illviljan
Copy link
Contributor Author

I don't know how to do that.
Why isn't Squash and merge good enough?

@scottshambaugh
Copy link
Contributor

That works as well! We need a second maintainer to approve the PR before it can be merged, but I or them can squash merge it.

@QuLogic QuLogic merged commit 63156f2 into matplotlib:main May 1, 2024
35 of 41 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 1, 2024
QuLogic added a commit that referenced this pull request May 4, 2024
…039-on-v3.9.x

Backport PR #28039 on branch v3.9.x (Respect vertical_axis when rotating plot interactively)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: vertical_axis not respected when rotating plots interactively
4 participants