Title: Behavior of hist() with normed=True changes from v2.0 to v2.1 · Issue #9557 · matplotlib/matplotlib · GitHub
Open Graph Title: Behavior of hist() with normed=True changes from v2.0 to v2.1 · Issue #9557 · matplotlib/matplotlib
X Title: Behavior of hist() with normed=True changes from v2.0 to v2.1 · Issue #9557 · matplotlib/matplotlib
Description: Found in the context of astropy/astropy#6786 When hist() is passed irregular bins with normed=True, the output is different between matplotlib 2.0 and 2.1. Here is a test script to reproduce the issue: # Python 3.6 import matplotlib.pypl...
Open Graph Description: Found in the context of astropy/astropy#6786 When hist() is passed irregular bins with normed=True, the output is different between matplotlib 2.0 and 2.1. Here is a test script to reproduce the is...
X Description: Found in the context of astropy/astropy#6786 When hist() is passed irregular bins with normed=True, the output is different between matplotlib 2.0 and 2.1. Here is a test script to reproduce the is...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9557
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Behavior of hist() with normed=True changes from v2.0 to v2.1","articleBody":"Found in the context of https://github.com/astropy/astropy/issues/6786\r\n\r\nWhen hist() is passed irregular bins with ``normed=True``, the output is different between matplotlib 2.0 and 2.1. Here is a test script to reproduce the issue:\r\n\r\n```python\r\n# Python 3.6\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib\r\nimport numpy as np\r\nrng = np.random.RandomState(829)\r\n\r\nt = np.concatenate([rng.randn(100),\r\n 2 + 0.1 * rng.randn(100),\r\n 5 + 3 * rng.randn(100)])\r\nplt.hist(t, bins=[-5, -3, -2, -1, -0.5, 0, 2, 4, 5, 10], normed=True)\r\nplt.title(f'matplotlib v{matplotlib.__version__}')\r\nplt.savefig(f'hist-{matplotlib.__version__}.png')\r\nplt.show()\r\n```\r\n\r\n``hist-2.0.2.png``:\r\n\r\n\r\n``hist-2.1.0.png``:\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/jakevdp","@type":"Person","name":"jakevdp"},"datePublished":"2017-10-24T14:52:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":28},"url":"https://github.com/9557/matplotlib/issues/9557"}
| 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:256f13e7-0b83-a8b6-b28f-8bd1c790c634 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5E4:24B6F:29F52B5:3C9C0E7:6A566882 |
| html-safe-nonce | 4ab33d5ba0a4f51a6440a7367389a8505353e1a2a9824644032ffebb61c2f496 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUU0OjI0QjZGOjI5RjUyQjU6M0M5QzBFNzo2QTU2Njg4MiIsInZpc2l0b3JfaWQiOiI1MzA5Mzk5OTUyNzUzMzIyMTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e60112ff5a9c623520880c9b9faa581b1e126427b510cfcf59d43f1211fb4f72 |
| hovercard-subject-tag | issue:268064045 |
| 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/9557/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c767d3bbe3b0c2887b2425cfa978164a0a7ec9f27f17dd080f1153fec8921b1a/matplotlib/matplotlib/issues/9557 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c767d3bbe3b0c2887b2425cfa978164a0a7ec9f27f17dd080f1153fec8921b1a/matplotlib/matplotlib/issues/9557 |
| og:image:alt | Found in the context of astropy/astropy#6786 When hist() is passed irregular bins with normed=True, the output is different between matplotlib 2.0 and 2.1. Here is a test script to reproduce the is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakevdp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bfcd903bf3318822b10b18a6332fac40d3a21f7d94456dca766ab8fa7328068 |
| 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 | 37f446b78ad53e6f593aa1a4243b87c76a3428ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width