Title: set_aspect for 3D plots · Issue #17172 · matplotlib/matplotlib · GitHub
Open Graph Title: set_aspect for 3D plots · Issue #17172 · matplotlib/matplotlib
X Title: set_aspect for 3D plots · Issue #17172 · matplotlib/matplotlib
Description: Bug report Bug summary set_aspect does not work for 3D surface plots Expected outcome If a sphere is drawn with plot_surface then it should appear as a sphere and not an ellipse that depends on the window sizing. This was achieved in mpl...
Open Graph Description: Bug report Bug summary set_aspect does not work for 3D surface plots Expected outcome If a sphere is drawn with plot_surface then it should appear as a sphere and not an ellipse that depends on the...
X Description: Bug report Bug summary set_aspect does not work for 3D surface plots Expected outcome If a sphere is drawn with plot_surface then it should appear as a sphere and not an ellipse that depends on the...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17172
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"set_aspect for 3D plots","articleBody":"\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nset_aspect does not work for 3D surface plots\r\n\r\n**Expected outcome**\r\n\r\nIf a sphere is drawn with plot_surface then it should appear as a sphere and not an ellipse that depends on the window sizing. This was achieved in mpl 3.0.3 by calling \r\nset_aspect('equal'). \r\nIt is now broken in mpl 3.1.1-3.1.3 because the following was inserted in matplotlib/axes/_base.py (lines1279:1282) by the developers\r\n if (not cbook._str_equal(aspect, 'auto')) and self.name == '3d':\r\n raise NotImplementedError(\r\n 'It is not currently possible to manually set the aspect '\r\n 'on 3D axes')\r\n\r\nTo get set_aspect to work (correctly, I might add), I have to comment out these lines in my local version of matplotlib. A plotted sphere appears as a sphere independent of the window sizing.\r\n","author":{"url":"https://github.com/vondreele","@type":"Person","name":"vondreele"},"datePublished":"2020-04-17T15:15:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":35},"url":"https://github.com/17172/matplotlib/issues/17172"}
| 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:af39dc99-83a4-8dfa-8653-ee965296cc83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C996:C1E1E:19931D:2287BB:6A5254D6 |
| html-safe-nonce | 55c6a3c21bb5eaa4852febcc81757d6f159be35a88323ec5b158f8ec4133cb1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTk2OkMxRTFFOjE5OTMxRDoyMjg3QkI6NkE1MjU0RDYiLCJ2aXNpdG9yX2lkIjoiODAzMTQ2OTA2Mjk2MDg2MjQyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0935fab22c2093b5e31a4b1eaf17ebf9143aac02f5f180c1b04f52cad216b68d |
| hovercard-subject-tag | issue:602048814 |
| 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/17172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b77cbd406b2a15daa8939a188faaf48fbba629db3e2dc6d20e07cc67a3494e8/matplotlib/matplotlib/issues/17172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b77cbd406b2a15daa8939a188faaf48fbba629db3e2dc6d20e07cc67a3494e8/matplotlib/matplotlib/issues/17172 |
| og:image:alt | Bug report Bug summary set_aspect does not work for 3D surface plots Expected outcome If a sphere is drawn with plot_surface then it should appear as a sphere and not an ellipse that depends on the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vondreele |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width