Fix: Axis and grid panes out of sync when inverting an axis - #31992
Conversation
|
Thank you for opening your first PR into Matplotlib! If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process. You can also join us on discourse chat for real-time discussion. For details on testing, writing docs, and our review process, please see the developer guide. We strive to be a welcoming and open project. Please follow our Code of Conduct. |
scottshambaugh
left a comment
There was a problem hiding this comment.
Looks like a nice clean fix to me, thanks @HakonSohoel!
791edac to
904dc8f
Compare
904dc8f to
0797150
Compare
0797150 to
d618766
Compare
…992-on-v3.11.x Backport PR #31992 on branch v3.11.x (Fix: Axis and grid panes out of sync when inverting an axis)
closes #31989
PR summary
When inverting an axis of a 3d plot the axis and background pane got out of sync.
This is a regression from previous versions.
This PR fixes the bug and adds a regression test for it.
Example
Resulting plot with the bug:

Resulting plot after this fix:

AI Disclosure
AI was used as a sparring partner to get acquainted with the repository and pinpointing the possible location of the bug.
PR checklist