Title: [Feature request] Functions for "manually" plotting histograms · Issue #6669 · matplotlib/matplotlib · GitHub
Open Graph Title: [Feature request] Functions for "manually" plotting histograms · Issue #6669 · matplotlib/matplotlib
X Title: [Feature request] Functions for "manually" plotting histograms · Issue #6669 · matplotlib/matplotlib
Description: matplotlib's pyplot.hist and pyplot.hist2d functions fill the supplied data into histogram bins and plot them, but very often users will have already done the first step (sorting data into bins) in their own code and are merely intereste...
Open Graph Description: matplotlib's pyplot.hist and pyplot.hist2d functions fill the supplied data into histogram bins and plot them, but very often users will have already done the first step (sorting data into bins) in...
X Description: matplotlib's pyplot.hist and pyplot.hist2d functions fill the supplied data into histogram bins and plot them, but very often users will have already done the first step (sorting data into bins...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6669
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature request] Functions for \"manually\" plotting histograms","articleBody":"matplotlib's `pyplot.hist` and `pyplot.hist2d` functions fill the supplied data into histogram bins and plot them, but very often users will have already done the first step (sorting data into bins) in their own code and are merely interested in presenting their results in a \"style\" that is evocative of histograms (most commonly: bar chart with no separation for 1D data, colored grid for 2D data).\n\nRight now they can do this by using the `pyplot.bar` and `pyplot.imshow` functions for 1D and 2D data, respectively, but they have to fill in a bunch of arguments to make it look like something produced by `pyplot.hist` or `pyplot.hist2d` and they have to find out that those two are the right functions for the job in the first place (not very intuitive).\n\nHence I think it would be good if there were separate functions or maybe just special arguments to `pyplot.hist/hist2d` that allow you to plot bin _values_ (as opposed to data that is yet to be binned) as histograms that look exactly as if they had been produced by `pyplot.hist/hist2d`.\n","author":{"url":"https://github.com/smheidrich","@type":"Person","name":"smheidrich"},"datePublished":"2016-06-30T10:56:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":58},"url":"https://github.com/6669/matplotlib/issues/6669"}
| 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:b0862a69-0554-f5eb-246a-a88007106912 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4EA:26DB27:45717D:5F3B83:6A527875 |
| html-safe-nonce | 794c406d050c8c0b11bf8298abcd8554c9e0dff8cdf0840c174b285adfce2b39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEVBOjI2REIyNzo0NTcxN0Q6NUYzQjgzOjZBNTI3ODc1IiwidmlzaXRvcl9pZCI6IjczMTcxMTU1Mjk0NjYxMTYyMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2d9f28bb41c60a3580e6c14011124afa3ccb02bbe7f50a63b1c983d811e820e8 |
| hovercard-subject-tag | issue:163137687 |
| 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/6669/issue_layout |
| twitter:image | https://opengraph.githubassets.com/737c0ae41c1d7a8e9abd725c784560063cfdca0546558c6f201e36c46f3a57ea/matplotlib/matplotlib/issues/6669 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/737c0ae41c1d7a8e9abd725c784560063cfdca0546558c6f201e36c46f3a57ea/matplotlib/matplotlib/issues/6669 |
| og:image:alt | matplotlib's pyplot.hist and pyplot.hist2d functions fill the supplied data into histogram bins and plot them, but very often users will have already done the first step (sorting data into bins) in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smheidrich |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width