Title: Feature Request: non-square axes in axes3D · Issue #8593 · matplotlib/matplotlib · GitHub
Open Graph Title: Feature Request: non-square axes in axes3D · Issue #8593 · matplotlib/matplotlib
X Title: Feature Request: non-square axes in axes3D · Issue #8593 · matplotlib/matplotlib
Description: Currently, we can get non-square axes in axes3D based on a simple hack from http://stackoverflow.com/a/10328142/2135095, by editing the get_proj function inside site-packages\mpl_toolkits\mplot3d\axes3d.py: def get_proj(self): relev, raz...
Open Graph Description: Currently, we can get non-square axes in axes3D based on a simple hack from http://stackoverflow.com/a/10328142/2135095, by editing the get_proj function inside site-packages\mpl_toolkits\mplot3d\a...
X Description: Currently, we can get non-square axes in axes3D based on a simple hack from http://stackoverflow.com/a/10328142/2135095, by editing the get_proj function inside site-packages\mpl_toolkits\mplot3d\a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: non-square axes in axes3D","articleBody":"Currently, we can get non-square axes in axes3D based on a simple hack from http://stackoverflow.com/a/10328142/2135095, by editing the `get_proj` function inside site-packages\\mpl_toolkits\\mplot3d\\axes3d.py:\r\n\r\n def get_proj(self):\r\n\r\n relev, razim = np.pi * self.elev/180, np.pi * self.azim/180\r\n\r\n try:\r\n self.localPbAspect = self.pbaspect\r\n except AttributeError:\r\n self.localPbAspect = [1,1,1]\r\n \r\n xmin, xmax = self.get_xlim3d() / self.localPbAspect[0]\r\n ymin, ymax = self.get_ylim3d() / self.localPbAspect[1]\r\n zmin, zmax = self.get_zlim3d() / self.localPbAspect[2]\r\n\r\nthen in the code we can set the axes manually:\r\n\r\n fig = plt.figure()\r\n ax = fig.gca(projection='3d')\r\n ax.pbaspect = [1,1,0.5]\r\n\r\nit would be great if we can have some generic solution to achieve non-square axes. ","author":{"url":"https://github.com/huangziwei","@type":"Person","name":"huangziwei"},"datePublished":"2017-05-08T10:50:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/8593/matplotlib/issues/8593"}
| 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:96e0fadb-8cc3-7f2f-4a92-7f7379d0e352 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81B2:1078DB:282FB9:35E23C:6A528B15 |
| html-safe-nonce | 5ec69266366fe306cf3fbf3bbba0759f57cc0a967ef24152d7de847d50e7bab5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUIyOjEwNzhEQjoyODJGQjk6MzVFMjNDOjZBNTI4QjE1IiwidmlzaXRvcl9pZCI6IjM4NTAzNzcxMjEwOTc3NDcyMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 523dc5153e3175c54b1cb440b6f193ea0517b644b2b950dccbd3e4a2a2342b43 |
| hovercard-subject-tag | issue:227008602 |
| 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/8593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f248cb5c3ca81a432c9f9dc055a64e42e3619afe12a0f571b34347d7b0e6f03/matplotlib/matplotlib/issues/8593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f248cb5c3ca81a432c9f9dc055a64e42e3619afe12a0f571b34347d7b0e6f03/matplotlib/matplotlib/issues/8593 |
| og:image:alt | Currently, we can get non-square axes in axes3D based on a simple hack from http://stackoverflow.com/a/10328142/2135095, by editing the get_proj function inside site-packages\mpl_toolkits\mplot3d\a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | huangziwei |
| 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