Title: [Bug]: Axis and grid panes out of sync, regression in 3.11 · Issue #31989 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Axis and grid panes out of sync, regression in 3.11 · Issue #31989 · matplotlib/matplotlib
X Title: [Bug]: Axis and grid panes out of sync, regression in 3.11 · Issue #31989 · matplotlib/matplotlib
Description: Bug summary When inverting an axis on an Axes3D object, the axis and the background pane gets out of sync. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(projection="3d") ax.invert_zaxis() p...
Open Graph Description: Bug summary When inverting an axis on an Axes3D object, the axis and the background pane gets out of sync. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subp...
X Description: Bug summary When inverting an axis on an Axes3D object, the axis and the background pane gets out of sync. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31989
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Axis and grid panes out of sync, regression in 3.11","articleBody":"### Bug summary\n\nWhen inverting an axis on an Axes3D object, the axis and the background pane gets out of sync.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.add_subplot(projection=\"3d\")\nax.invert_zaxis()\n\nplt.show()\n```\n\n### Actual outcome\n\n\u003cimg width=\"637\" height=\"541\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f21aea32-dcf6-438f-b7d6-8d12468018fe\" /\u003e\n\n### Expected outcome\n\n\u003cimg width=\"636\" height=\"542\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1cf19977-92e8-45af-952a-ca95c022ccd1\" /\u003e\n\n### Additional information\n\nThis worked in version 3.10.9\n\n### Operating system\n\nOS X\n\n### Matplotlib Version\n\n3.11.0\n\n### Matplotlib Backend\n\nmacosx\n\n### Python version\n\n3.13.12\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nuv","author":{"url":"https://github.com/HakonSohoel","@type":"Person","name":"HakonSohoel"},"datePublished":"2026-07-03T11:10:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/31989/matplotlib/issues/31989"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc7c869d-6131-bd67-f029-b9e0bb7e3303 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 847E:69662:33A74ED:470F31F:6A4F2CA8 |
| html-safe-nonce | 72a3960a4bb224f2f7d60c555074830307d225d448f5d81da36253c87e1621e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDdFOjY5NjYyOjMzQTc0RUQ6NDcwRjMxRjo2QTRGMkNBOCIsInZpc2l0b3JfaWQiOiI4MzA3NTUwMTQ0ODYzMDg3Nzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4d299c5bcf6b389c7b31eb3cfed9c081f4bd5f3faeecb9e4cdb10ce8217f759c |
| hovercard-subject-tag | issue:4802952857 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/31989/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa3ebfad4977bfc4d8d49771f82dfd37a42b8bda8ba5e29106c8f24e78af8bed/matplotlib/matplotlib/issues/31989 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa3ebfad4977bfc4d8d49771f82dfd37a42b8bda8ba5e29106c8f24e78af8bed/matplotlib/matplotlib/issues/31989 |
| og:image:alt | Bug summary When inverting an axis on an Axes3D object, the axis and the background pane gets out of sync. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HakonSohoel |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width