Title: Axes3D.view_init elevation issue between 270 and 360 degrees · Issue #10241 · matplotlib/matplotlib · GitHub
Open Graph Title: Axes3D.view_init elevation issue between 270 and 360 degrees · Issue #10241 · matplotlib/matplotlib
X Title: Axes3D.view_init elevation issue between 270 and 360 degrees · Issue #10241 · matplotlib/matplotlib
Description: Bug report Bug summary I want to make rotate a 3D plot using the view_init method. If the azim argument is used it makes a smooth rotation around the z-axis. However, if the elev argument is used the plot is flipped after the angle 270 d...
Open Graph Description: Bug report Bug summary I want to make rotate a 3D plot using the view_init method. If the azim argument is used it makes a smooth rotation around the z-axis. However, if the elev argument is used t...
X Description: Bug report Bug summary I want to make rotate a 3D plot using the view_init method. If the azim argument is used it makes a smooth rotation around the z-axis. However, if the elev argument is used t...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10241
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Axes3D.view_init elevation issue between 270 and 360 degrees","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\nI want to make rotate a 3D plot using the `view_init `method. If the `azim` argument is used it makes a smooth rotation around the z-axis. However, if the `elev` argument is used the plot is flipped after the angle 270 degrees. This problem seems to come from the fact that the range [0:-90] does not give the same output as the range [270:360] while it should. Here are two outputs that should be the same for -15 and 345, but there are not.\r\n\r\n\r\n\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib import cm\r\nfrom mpl_toolkits.mplot3d import axes3d\r\nfrom pylab import *\r\n\r\nelevation=345 #or -15\r\nangle=None\r\n\r\nfig = plt.figure()\r\nax = fig.add_subplot(111, projection='3d')\r\nX, Y, Z = axes3d.get_test_data(0.05)\r\ns = ax.plot_surface(X, Y, Z, cmap=cm.jet)\r\nax.view_init(elev = elevation, azim=angle)\r\nplt.axis('off')\r\n```\r\n\r\n\r\n**Matplotlib version**\r\n * Operating system: Debian\r\n * Matplotlib version: 2.1\r\n * Matplotlib backend:TkAgg\r\n * Python version: 2.7\r\n\r\nInstalled from pip\r\n\r\n","author":{"url":"https://github.com/amichaut","@type":"Person","name":"amichaut"},"datePublished":"2018-01-13T03:56:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10241/matplotlib/issues/10241"}
| 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:6bc78f64-50d4-db15-7fb7-1964cf770c84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAE0:10FEF0:D3D692:11C6D74:6A528724 |
| html-safe-nonce | e55fbf211a5403ca518bad73d566387afccd24ed08c7369e5fed801ce7b1ab0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUUwOjEwRkVGMDpEM0Q2OTI6MTFDNkQ3NDo2QTUyODcyNCIsInZpc2l0b3JfaWQiOiIxNDc5OTg2MjA4MDMzNjM4MTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1a74f8c4ffc42d3975a1af1c60d02c37e12b264f1bd6c12f116d36c304d1a071 |
| hovercard-subject-tag | issue:288300355 |
| 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/10241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d892c3c2930b35dd05f0281c1266ba5bd850efeb0743ce7451b70d3368e0d5c5/matplotlib/matplotlib/issues/10241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d892c3c2930b35dd05f0281c1266ba5bd850efeb0743ce7451b70d3368e0d5c5/matplotlib/matplotlib/issues/10241 |
| og:image:alt | Bug report Bug summary I want to make rotate a 3D plot using the view_init method. If the azim argument is used it makes a smooth rotation around the z-axis. However, if the elev argument is used t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amichaut |
| 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