Title: yscale('log') broken for histogram · Issue #9247 · matplotlib/matplotlib · GitHub
Open Graph Title: yscale('log') broken for histogram · Issue #9247 · matplotlib/matplotlib
X Title: yscale('log') broken for histogram · Issue #9247 · matplotlib/matplotlib
Description: Bug report Bug summary Setting the yscale to log in histogram results in empty plot Code for reproduction import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt plt.figure() plt.hist(np.random.normal(size=1000)) plt....
Open Graph Description: Bug report Bug summary Setting the yscale to log in histogram results in empty plot Code for reproduction import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt plt.figure() pl...
X Description: Bug report Bug summary Setting the yscale to log in histogram results in empty plot Code for reproduction import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt plt.figure() pl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9247
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"yscale('log') broken for histogram","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\nSetting the yscale to log in histogram results in empty plot\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.figure()\r\nplt.hist(np.random.normal(size=1000))\r\nplt.yscale('log')\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n**Expected outcome**\r\n\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating System: Archlinux\r\n * Matplotlib Version: 2.1.0rc1+49.g20aff4baa\r\n * Python Version: 3.6\r\n * Jupyter Version (if applicable): notebook 5.1\r\n * Other Libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e","author":{"url":"https://github.com/weninc","@type":"Person","name":"weninc"},"datePublished":"2017-09-28T05:03:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/9247/matplotlib/issues/9247"}
| 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:1a902293-d872-6fa5-e8bf-be5601ddd9d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4A6:1D428F:1104864:173A7B1:6A5212D5 |
| html-safe-nonce | 5e9636fa70a83e9b695b87f239ff6d30482b475c34a0b329e49172d67e26fcc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEE2OjFENDI4RjoxMTA0ODY0OjE3M0E3QjE6NkE1MjEyRDUiLCJ2aXNpdG9yX2lkIjoiMTUwMjA1OTc3NTgzOTU3MjY5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 983b14e6bcbfb5ad51eb4a4d11c5d8856e3c36461d5a12f660f3fc2e4295758d |
| hovercard-subject-tag | issue:261194270 |
| 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/9247/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3e1efe84ad29ebeaf773f7cfdb14ad33d2be10b5188675780b6cb94ad606192/matplotlib/matplotlib/issues/9247 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3e1efe84ad29ebeaf773f7cfdb14ad33d2be10b5188675780b6cb94ad606192/matplotlib/matplotlib/issues/9247 |
| og:image:alt | Bug report Bug summary Setting the yscale to log in histogram results in empty plot Code for reproduction import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt plt.figure() pl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weninc |
| 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