Skip to content

Respect vertical_axis when rotating plot interactively#28039

Merged
QuLogic merged 5 commits intomatplotlib:mainfrom
Illviljan:vertical_axis_on_move
May 1, 2024
Merged

Respect vertical_axis when rotating plot interactively#28039
QuLogic merged 5 commits intomatplotlib:mainfrom
Illviljan:vertical_axis_on_move

Conversation

@Illviljan
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@scottshambaugh
Copy link
Copy Markdown
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
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