Title: [Bug]: Calling invert_yaxis() on a 3D plot inverts the xaxis · Issue #21843 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Calling invert_yaxis() on a 3D plot inverts the xaxis · Issue #21843 · matplotlib/matplotlib
X Title: [Bug]: Calling invert_yaxis() on a 3D plot inverts the xaxis · Issue #21843 · matplotlib/matplotlib
Description: Bug summary Instead of inverting the yaxis, invert_yaxis actually has the same effect as invert_xaxis: The demo code is derived from the demo here. Code for reproduction import matplotlib from mpl_toolkits.mplot3d import Axes3D import ma...
Open Graph Description: Bug summary Instead of inverting the yaxis, invert_yaxis actually has the same effect as invert_xaxis: The demo code is derived from the demo here. Code for reproduction import matplotlib from mpl_...
X Description: Bug summary Instead of inverting the yaxis, invert_yaxis actually has the same effect as invert_xaxis: The demo code is derived from the demo here. Code for reproduction import matplotlib from mpl_...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21843
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Calling invert_yaxis() on a 3D plot inverts the xaxis","articleBody":"### Bug summary\r\n\r\nInstead of inverting the yaxis, `invert_yaxis` actually has the same effect as `invert_xaxis`:\r\n\r\nThe demo code is derived from the demo [here](https://github.com/matplotlib/matplotlib/issues/14577/#issuecomment-503560047).\r\n\r\n\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\nimport matplotlib.pyplot as plt\r\n\r\nfig = plt.figure(figsize=(9,3.5), dpi=80)\r\nax1 = fig.add_subplot(141, projection='3d')\r\nax2 = fig.add_subplot(142, projection='3d')\r\nax3 = fig.add_subplot(143, projection='3d')\r\nax4 = fig.add_subplot(144, projection='3d')\r\n\r\nfig.suptitle(f\"matplotlib v{matplotlib.__version__}\")\r\n\r\nax1.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=\"o\")\r\nax2.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=\"o\")\r\nax3.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=\"o\")\r\nax4.plot([1,1,10,10], [1,10,10,10], [1,1,1,10], marker=\"o\")\r\n\r\nax2.invert_xaxis()\r\nax3.invert_yaxis()\r\nax4.invert_zaxis()\r\n\r\nplt.show()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\n \r\n(well ... somewhat like this)\r\n\r\n### Additional information\r\n\r\nThis was worked on here, but apparently did not fix my issue, or am I missing something?\r\nhttps://github.com/matplotlib/matplotlib/pull/14579/commits/0e413176143711bb417439634acd8d6031264612\r\nhttps://github.com/matplotlib/matplotlib/pull/14579\r\n\r\n### Matplotlib Version\r\n\r\n3.5.0\r\n\r\n### Installation\r\n\r\nconda","author":{"url":"https://github.com/baloe","@type":"Person","name":"baloe"},"datePublished":"2021-12-02T12:55:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/21843/matplotlib/issues/21843"}
| 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:7d4eae8a-9516-44f4-ba8d-17bc271ea1f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8E8:382280:61076F:8096E1:6A53F00C |
| html-safe-nonce | b1a41ac9934b7e592094ea65c24d5311b9d1f0409a6f434706cc35ebb2285c99 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEU4OjM4MjI4MDo2MTA3NkY6ODA5NkUxOjZBNTNGMDBDIiwidmlzaXRvcl9pZCI6IjQwNDg3NTExMjA2NTAzMzQyMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a155d1b40d1662f1444ce4a2499e7810fad8d9a7c577bc2641b1490f14063195 |
| hovercard-subject-tag | issue:1069517444 |
| 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/21843/issue_layout |
| twitter:image | https://opengraph.githubassets.com/655daf0d535e1f1d4877689457e52e79c27c7d3e8388c9a240fc849de7ed0c6f/matplotlib/matplotlib/issues/21843 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/655daf0d535e1f1d4877689457e52e79c27c7d3e8388c9a240fc849de7ed0c6f/matplotlib/matplotlib/issues/21843 |
| og:image:alt | Bug summary Instead of inverting the yaxis, invert_yaxis actually has the same effect as invert_xaxis: The demo code is derived from the demo here. Code for reproduction import matplotlib from mpl_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | baloe |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width