Title: [Bug]: invalid value encountered with 'ortho' projection mode · Issue #22624 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: invalid value encountered with 'ortho' projection mode · Issue #22624 · matplotlib/matplotlib
X Title: [Bug]: invalid value encountered with 'ortho' projection mode · Issue #22624 · matplotlib/matplotlib
Description: Bug summary Hello, Passing the mouse on the figure when plot has been generated with 'ortho' projection 3d mode and specific azimuthal and elevation angles returns the following message : C:....\lib\site-packages\mpl_toolkits\mplot3d\pro...
Open Graph Description: Bug summary Hello, Passing the mouse on the figure when plot has been generated with 'ortho' projection 3d mode and specific azimuthal and elevation angles returns the following message : C:....\li...
X Description: Bug summary Hello, Passing the mouse on the figure when plot has been generated with 'ortho' projection 3d mode and specific azimuthal and elevation angles returns the following message : C...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22624
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: invalid value encountered with 'ortho' projection mode ","articleBody":"### Bug summary\r\n\r\nHello,\r\n\r\nPassing the mouse on the figure when plot has been generated with **'ortho'** projection 3d mode and specific azimuthal and elevation angles returns the following message : \r\n\r\n_C:\\....\\lib\\site-packages\\mpl_toolkits\\mplot3d\\proj3d.py:25: RuntimeWarning: invalid value encountered in double_scalars\r\n u = (x01*x21 + y01*y21) / (x21¨¨2 + y21¨¨2)_\r\n\r\nCould you please investigate this ?\r\nthanks,\r\nPatrick\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nfig, ax = plt.subplots(subplot_kw={'projection': '3d'})\r\nax.scatter(0, 0)\r\nax.set_proj_type('ortho')\r\nax.view_init(azim=-90, elev=90)\r\nplt.show()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nC:\\....\\lib\\site-packages\\mpl_toolkits\\mplot3d\\proj3d.py:25: RuntimeWarning: invalid value encountered in double_scalars\r\n u = (x01*x21 + y01*y21) / (x21**2 + y21**2)\r\n\r\n\u003e \r\n\r\n### Expected outcome\r\n\r\nNo RuntimeWarning message\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nWindows\r\n\r\n### Matplotlib Version\r\n\r\n3.4.2\r\n\r\n### Matplotlib Backend\r\n\r\n_No response_\r\n\r\n### Python version\r\n\r\n3.7.7\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/patquem","@type":"Person","name":"patquem"},"datePublished":"2022-03-08T16:33:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/22624/matplotlib/issues/22624"}
| 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:f3b88488-9a69-f488-219d-9cff00ac9a69 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FF8:1F08C5:23E9AFC:30423D9:6A547385 |
| html-safe-nonce | d665fd888c84912ed792c24c42675c7b42b96a2274c6c916e0aca3455c8897bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkY4OjFGMDhDNToyM0U5QUZDOjMwNDIzRDk6NkE1NDczODUiLCJ2aXNpdG9yX2lkIjoiODc5OTM3OTEzMzUzNDg2MDE2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3dcf292ec85afd2ec5a24c25ed8405d0d6360c43a51ba382c858999cf9c3464b |
| hovercard-subject-tag | issue:1162870019 |
| 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/22624/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d912f949f3402116e4db913b59d65662192f1e1744dccfd6e7606e9c5a8f591/matplotlib/matplotlib/issues/22624 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d912f949f3402116e4db913b59d65662192f1e1744dccfd6e7606e9c5a8f591/matplotlib/matplotlib/issues/22624 |
| og:image:alt | Bug summary Hello, Passing the mouse on the figure when plot has been generated with 'ortho' projection 3d mode and specific azimuthal and elevation angles returns the following message : C:....\li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | patquem |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width