Title: make histtype='step' default · Issue #7121 · matplotlib/matplotlib · GitHub
Open Graph Title: make histtype='step' default · Issue #7121 · matplotlib/matplotlib
X Title: make histtype='step' default · Issue #7121 · matplotlib/matplotlib
Description: I'm using matplotlib version 1.5.1 on Scientific Linux 6 (RHEL clone). I am using the matplotlib provided in the anaconda install. I would like to propose that histograms are drawn by default with histtype='step'. I've been using matplot...
Open Graph Description: I'm using matplotlib version 1.5.1 on Scientific Linux 6 (RHEL clone). I am using the matplotlib provided in the anaconda install. I would like to propose that histograms are drawn by default with ...
X Description: I'm using matplotlib version 1.5.1 on Scientific Linux 6 (RHEL clone). I am using the matplotlib provided in the anaconda install. I would like to propose that histograms are drawn by default w...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7121
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"make histtype='step' default","articleBody":"I'm using matplotlib version 1.5.1 on Scientific Linux 6 (RHEL clone). I am using the matplotlib provided in the anaconda install.\n\nI would like to propose that histograms are drawn by default with `histtype='step'`. I've been using matplotlib for a long time, and it is very common (at least in high energy physics) to plot histograms with a large number of bins, which using the default drawing behavior leads to very unresponsive plots. For example:\n\n``` python\nplt.hist(np.random.exponential(size=1000000),bins=10000)\nplt.show()\n```\n\nproduces a histogram which takes ~15 seconds to draw and takes somewhere between 5-10 seconds to redraw after panning or zooming. In contrast, plotting with `histtype='step'`:\n\n``` python\nplt.hist(np.random.exponential(size=1000000),bins=10000,histtype='step')\nplt.show()\n```\n\nplots almost instantaneously and can be panned and zoomed with no delay.\n\nThe step option also follows the least ink principle which Edward Tufte recommends in his book \"The Visual Display of Quantitative Information\".\n\nAt a minimum, maybe the step option could be included in the histogram_demo.py file. I'd be happy to do this if it's a welcome addition.\n","author":{"url":"https://github.com/tlatorre-uchicago","@type":"Person","name":"tlatorre-uchicago"},"datePublished":"2016-09-15T23:37:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/7121/matplotlib/issues/7121"}
| 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:b3b2c68a-8679-6585-29a8-bab06824f7a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB56:39E76C:341401:4810C7:6A5372E4 |
| html-safe-nonce | c36a28459d0bb1cf473f300e0e9aa1f2fd0d8ba11bf1203331ac94dc205c3bfd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjU2OjM5RTc2QzozNDE0MDE6NDgxMEM3OjZBNTM3MkU0IiwidmlzaXRvcl9pZCI6IjgwNzM2NzAzNDk2MjkzMjQ1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7e16810e5d89ea79c06d80745d6c8bfdc7fe42480e44dc361aaaf5b6cacfa716 |
| hovercard-subject-tag | issue:177316019 |
| 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/7121/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f71faca457e7b81f1286e92146e93273fc1d8b7915fc08ebe80d33bf7093eb4/matplotlib/matplotlib/issues/7121 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f71faca457e7b81f1286e92146e93273fc1d8b7915fc08ebe80d33bf7093eb4/matplotlib/matplotlib/issues/7121 |
| og:image:alt | I'm using matplotlib version 1.5.1 on Scientific Linux 6 (RHEL clone). I am using the matplotlib provided in the anaconda install. I would like to propose that histograms are drawn by default with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tlatorre-uchicago |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width