Title: Divide by zero error in matplotlib.tests.test_colors.test_light_source_shading_color_range · Issue #3248 · matplotlib/matplotlib · GitHub
Open Graph Title: Divide by zero error in matplotlib.tests.test_colors.test_light_source_shading_color_range · Issue #3248 · matplotlib/matplotlib
X Title: Divide by zero error in matplotlib.tests.test_colors.test_light_source_shading_color_range · Issue #3248 · matplotlib/matplotlib
Description: This is mainly to remind my self to fix this later. Not release critical A bunch of Numpy runtime warnings are thrown in this test because it is shading a flat surface which gives an uniform intensity which results in a divide by zero wh...
Open Graph Description: This is mainly to remind my self to fix this later. Not release critical A bunch of Numpy runtime warnings are thrown in this test because it is shading a flat surface which gives an uniform intens...
X Description: This is mainly to remind my self to fix this later. Not release critical A bunch of Numpy runtime warnings are thrown in this test because it is shading a flat surface which gives an uniform intens...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3248
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Divide by zero error in matplotlib.tests.test_colors.test_light_source_shading_color_range","articleBody":"This is mainly to remind my self to fix this later. Not release critical\n\nA bunch of Numpy runtime warnings are thrown in this test because it is shading \na flat surface which gives an uniform intensity which results in a divide by zero when normalising the intensity. \n\nThis should be fixed IMHO by: \n- Add a test with a more interesting surface. \n- Change share_rgb to avoid dividing by (intensity.max()-intensity.min()) when these are identical. This will change the result of the current test. \n- Alternatively one could fix this adding an assertion and refuse to shade flat surfaces. \n","author":{"url":"https://github.com/jenshnielsen","@type":"Person","name":"jenshnielsen"},"datePublished":"2014-07-13T14:30:38Z","url":"https://github.com/matplotlib/matplotlib/issues/3248"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7f1b0117-e4c2-8fb0-4765-62c1c2194b8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCA8:FBBFE:17F10F0:1F8A16B:6B067175 |
| html-safe-nonce | 5046bf12d2763e627e207d80f3cdba589d99a2f5a3555a2829818a3d15693232 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0E4OkZCQkZFOjE3RjEwRjA6MUY4QTE2Qjo2QjA2NzE3NSIsInZpc2l0b3JfaWQiOiIxMzk0NTY0MDU4NzYxODE4NDg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4b036df2d4d362aae370a953ac1f9042a06dc57b8fe43ac584ec6bef8fbc0cc2 |
| hovercard-subject-tag | issue:37742277 |
| 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/3248/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42bfdfc4ba33ac7d18deb11c7624f0efdfec418e8b0f0518750abe702efe1ebf/matplotlib/matplotlib/issues/3248 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42bfdfc4ba33ac7d18deb11c7624f0efdfec418e8b0f0518750abe702efe1ebf/matplotlib/matplotlib/issues/3248 |
| og:image:alt | This is mainly to remind my self to fix this later. Not release critical A bunch of Numpy runtime warnings are thrown in this test because it is shading a flat surface which gives an uniform intens... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jenshnielsen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width