Title: setting yscale to log, after drawing a plot with values equal to zero, results in incorrect handling of zero values · Issue #8045 · matplotlib/matplotlib · GitHub
Open Graph Title: setting yscale to log, after drawing a plot with values equal to zero, results in incorrect handling of zero values · Issue #8045 · matplotlib/matplotlib
X Title: setting yscale to log, after drawing a plot with values equal to zero, results in incorrect handling of zero values · Issue #8045 · matplotlib/matplotlib
Description: mpl 1.5.3 and 2.0, py3.6 _xs = np.linspace(-50, 50, 1001); plt.semilogy(scipy.stats.norm.pdf(_xs)) results in where zero values (due to floating point resolution limits, at the edges) get ignored, as expected, but _xs = np.linspace(-50, ...
Open Graph Description: mpl 1.5.3 and 2.0, py3.6 _xs = np.linspace(-50, 50, 1001); plt.semilogy(scipy.stats.norm.pdf(_xs)) results in where zero values (due to floating point resolution limits, at the edges) get ignored, ...
X Description: mpl 1.5.3 and 2.0, py3.6 _xs = np.linspace(-50, 50, 1001); plt.semilogy(scipy.stats.norm.pdf(_xs)) results in where zero values (due to floating point resolution limits, at the edges) get ignored, ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8045
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setting yscale to log, after drawing a plot with values equal to zero, results in incorrect handling of zero values","articleBody":"mpl 1.5.3 and 2.0, py3.6\r\n```\r\n_xs = np.linspace(-50, 50, 1001); plt.semilogy(scipy.stats.norm.pdf(_xs))\r\n```\r\nresults in\r\n\r\nwhere zero values (due to floating point resolution limits, at the edges) get ignored, as expected, but\r\n```\r\n_xs = np.linspace(-50, 50, 1001); plt.plot(scipy.stats.norm.pdf(_xs))\r\nplt.gcf().canvas.draw()\r\nplt.gca().set(yscale=\"log\")\r\n```\r\nresults in the incorrect\r\n\r\n\r\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2017-02-08T08:46:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/8045/matplotlib/issues/8045"}
| 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:2c08abf3-9951-742b-b9cc-935f03d688de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C034:31D6B3:156FD:1CB2F:6A51C90A |
| html-safe-nonce | dfa43bffc65eee7383da16a715e3a7b4d6fd41663501cd0b1020d6b63780ab3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDM0OjMxRDZCMzoxNTZGRDoxQ0IyRjo2QTUxQzkwQSIsInZpc2l0b3JfaWQiOiIxMTUzMDU3MzA0NjY2NTU2NjgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f9f3cff9c60714b3390b7b9dd7649efa9672b21f1072876900b5f6815707e82c |
| hovercard-subject-tag | issue:206130894 |
| 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/8045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac48441aa8ef2211f9722fbecebd953c5ba8bdc69244b6e812f03a2053d65db3/matplotlib/matplotlib/issues/8045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac48441aa8ef2211f9722fbecebd953c5ba8bdc69244b6e812f03a2053d65db3/matplotlib/matplotlib/issues/8045 |
| og:image:alt | mpl 1.5.3 and 2.0, py3.6 _xs = np.linspace(-50, 50, 1001); plt.semilogy(scipy.stats.norm.pdf(_xs)) results in where zero values (due to floating point resolution limits, at the edges) get ignored, ... |
| 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 | 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width