Title: Add RuntimeWarning guard around division-by-zero by oscargus · Pull Request #22628 · matplotlib/matplotlib · GitHub
Open Graph Title: Add RuntimeWarning guard around division-by-zero by oscargus · Pull Request #22628 · matplotlib/matplotlib
X Title: Add RuntimeWarning guard around division-by-zero by oscargus · Pull Request #22628 · matplotlib/matplotlib
Description: PR Summary Closes #22624 Avoid a RuntimeWarning otherwise plotted at the first divide by zero. /local/data1/matplotlib/lib/mpl_toolkits/mplot3d/proj3d.py:25: RuntimeWarning: invalid value encountered in double_scalars u = (x01*x21 + y01*y21) / (x21**2 + y21**2) Not sure if this can be tested properly. Directly calling the function is one way, but I do not have any other ideas really. PR Checklist Tests and Styling Has pytest style unit tests (and pytest passes). Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all). Documentation New features are documented, with examples if plot related. New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there). API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there). Documentation is sphinx and numpydoc compliant (the docs should build without error).
Open Graph Description: PR Summary Closes #22624 Avoid a RuntimeWarning otherwise plotted at the first divide by zero. /local/data1/matplotlib/lib/mpl_toolkits/mplot3d/proj3d.py:25: RuntimeWarning: invalid value encounter...
X Description: PR Summary Closes #22624 Avoid a RuntimeWarning otherwise plotted at the first divide by zero. /local/data1/matplotlib/lib/mpl_toolkits/mplot3d/proj3d.py:25: RuntimeWarning: invalid value encounter...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/22628
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:866ecffb-ce4d-8e04-f465-3f22625d7d42 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ABD2:23673F:35A768:49BE37:6A55232F |
| html-safe-nonce | 6b9dadfe9f7b1eb6d47496bf6f1265c3def93e7e0cd3739706831d98b9541f4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkQyOjIzNjczRjozNUE3Njg6NDlCRTM3OjZBNTUyMzJGIiwidmlzaXRvcl9pZCI6Ijk0MDQxMzA2NTgxOTkyMzI0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d5ad4d2ef89bf2485945ad39bd8ae3a2b6ee788e53a84c3e64de888a517a9851 |
| hovercard-subject-tag | pull_request:874959643 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/22628/files |
| twitter:image | https://avatars.githubusercontent.com/u/8114497?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8114497?s=400&v=4 |
| og:image:alt | PR Summary Closes #22624 Avoid a RuntimeWarning otherwise plotted at the first divide by zero. /local/data1/matplotlib/lib/mpl_toolkits/mplot3d/proj3d.py:25: RuntimeWarning: invalid value encounter... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 358dd24ad7465d20e3fae729b5b169d35b0dd7f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width