Title: spurious warning with nans in log-scale plot · Issue #7143 · matplotlib/matplotlib · GitHub
Open Graph Title: spurious warning with nans in log-scale plot · Issue #7143 · matplotlib/matplotlib
X Title: spurious warning with nans in log-scale plot · Issue #7143 · matplotlib/matplotlib
Description: mpl1.5.3 and mpl2.0b4 semilogy([1, 2, 3], [1, np.nan, 2], "o") triggers a warning: /usr/lib/python3.5/site-packages/matplotlib/scale.py:93: RuntimeWarning: invalid value encountered in less_equal mask = a <= 0.0 due to the comparison tha...
Open Graph Description: mpl1.5.3 and mpl2.0b4 semilogy([1, 2, 3], [1, np.nan, 2], "o") triggers a warning: /usr/lib/python3.5/site-packages/matplotlib/scale.py:93: RuntimeWarning: invalid value encountered in less_equal m...
X Description: mpl1.5.3 and mpl2.0b4 semilogy([1, 2, 3], [1, np.nan, 2], "o") triggers a warning: /usr/lib/python3.5/site-packages/matplotlib/scale.py:93: RuntimeWarning: invalid value encountered in le...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7143
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"spurious warning with nans in log-scale plot","articleBody":"mpl1.5.3 and mpl2.0b4\n\n```\nsemilogy([1, 2, 3], [1, np.nan, 2], \"o\")\n```\n\ntriggers a warning:\n\n```\n/usr/lib/python3.5/site-packages/matplotlib/scale.py:93: RuntimeWarning: invalid value encountered in less_equal\n mask = a \u003c= 0.0\n```\n\ndue to the comparison that involves a nan. I think this warning should be masked out (likely with the application of a `np.errstate` at the right place), given that nans are (AFAIK) a fully supported mechanism for hiding a point in a plot, and e.g. do not raise any warning in linear scale.\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-09-20T06:53:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/7143/matplotlib/issues/7143"}
| 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:7c85e170-f6bb-546b-4c98-8936ec25436e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C768:3499D7:1047997:15F222D:6A56B9EB |
| html-safe-nonce | 26b6f2e4504364424e9fc44233cf0ec8749480078818cd0e1d17977a73c0c772 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzY4OjM0OTlENzoxMDQ3OTk3OjE1RjIyMkQ6NkE1NkI5RUIiLCJ2aXNpdG9yX2lkIjoiNjE1OTc3ODE2NzExOTA2NzYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 982ecc1e105c2e8c679f26a74ac0d3aa3b7831e40aa775a205abf7b0ece4559a |
| hovercard-subject-tag | issue:177979534 |
| 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/7143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b25f89f1a3e4dd6fa3f04df88c44449bc69e12111c0fc876a9f776d0a2540d2/matplotlib/matplotlib/issues/7143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b25f89f1a3e4dd6fa3f04df88c44449bc69e12111c0fc876a9f776d0a2540d2/matplotlib/matplotlib/issues/7143 |
| og:image:alt | mpl1.5.3 and mpl2.0b4 semilogy([1, 2, 3], [1, np.nan, 2], "o") triggers a warning: /usr/lib/python3.5/site-packages/matplotlib/scale.py:93: RuntimeWarning: invalid value encountered in less_equal m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | df99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae |
| 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 | c29ba03b1896083dbe1084f6cd1c5367d8a0d67c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width