Title: Rely on numpy to properly normalize histograms with unequal bin widths · Issue #8333 · matplotlib/matplotlib · GitHub
Open Graph Title: Rely on numpy to properly normalize histograms with unequal bin widths · Issue #8333 · matplotlib/matplotlib
X Title: Rely on numpy to properly normalize histograms with unequal bin widths · Issue #8333 · matplotlib/matplotlib
Description: The source of hist contains the following snippets: Notes ----- Until numpy release 1.5, the underlying numpy histogram function was incorrect with `normed`=`True` if bin sizes were unequal. MPL inherited that error. It is now corrected ...
Open Graph Description: The source of hist contains the following snippets: Notes ----- Until numpy release 1.5, the underlying numpy histogram function was incorrect with `normed`=`True` if bin sizes were unequal. MPL in...
X Description: The source of hist contains the following snippets: Notes ----- Until numpy release 1.5, the underlying numpy histogram function was incorrect with `normed`=`True` if bin sizes were unequal. MPL in...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8333
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rely on numpy to properly normalize histograms with unequal bin widths","articleBody":"The source of `hist` contains the following snippets:\r\n```\r\n Notes\r\n -----\r\n Until numpy release 1.5, the underlying numpy histogram function was\r\n incorrect with `normed`=`True` if bin sizes were unequal. MPL\r\n inherited that error. It is now corrected within MPL when using\r\n earlier numpy versions.\r\n```\r\n```\r\n # hist_kwargs = dict(range=range, normed=bool(normed))\r\n # We will handle the normed kwarg within mpl until we\r\n # get to the point of requiring numpy \u003e= 1.5.\r\n```\r\nand code for manual handling of the `normed` kwarg.\r\n\r\nGiven that we now require numpy \u003e=1.7.1, we should just use the `density` kwarg to numpy.histogram to do this, and remove our own implementation.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2017-03-18T20:44:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/8333/matplotlib/issues/8333"}
| 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:d7540538-8a78-d455-6469-e524b42e144a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ECC:2E0AEB:D24457:1311D11:6A55FDBF |
| html-safe-nonce | 87d6506fad4e6934cc9c255a014de095e803fefe4090957e04ca7df186d232b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUNDOjJFMEFFQjpEMjQ0NTc6MTMxMUQxMTo2QTU1RkRCRiIsInZpc2l0b3JfaWQiOiI1NTQ2ODg1MTA1NjE5MTcyNzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 200e43bbb8044c8a8d82e3d47514cfb1a1bb2f3fe15d807689a63dbcbb7543f2 |
| hovercard-subject-tag | issue:215220341 |
| 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/8333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/48270e2c78fd72752539337bcf3ddfd6b1185969f47ef39f1fa59b08edd0b236/matplotlib/matplotlib/issues/8333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48270e2c78fd72752539337bcf3ddfd6b1185969f47ef39f1fa59b08edd0b236/matplotlib/matplotlib/issues/8333 |
| og:image:alt | The source of hist contains the following snippets: Notes ----- Until numpy release 1.5, the underlying numpy histogram function was incorrect with `normed`=`True` if bin sizes were unequal. MPL in... |
| 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 | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | ed27e29ef37c0e8f612ea3fed8118b955b8314e2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width