Title: plt.hist does not obey the hist.bins rcparams · Issue #7356 · matplotlib/matplotlib · GitHub
Open Graph Title: plt.hist does not obey the hist.bins rcparams · Issue #7356 · matplotlib/matplotlib
X Title: plt.hist does not obey the hist.bins rcparams · Issue #7356 · matplotlib/matplotlib
Description: 2.0b4 and master import matplotlib as mpl from matplotlib import pyplot as plt import numpy as np mpl.rcdefaults() mpl.rcParams["hist.bins"] = "auto" np.random.seed(1) x = np.random.rand(1000) n0, b0, p0 = plt.hist(x) n1, b1, p1 = plt.hi...
Open Graph Description: 2.0b4 and master import matplotlib as mpl from matplotlib import pyplot as plt import numpy as np mpl.rcdefaults() mpl.rcParams["hist.bins"] = "auto" np.random.seed(1) x = np.random.rand(1000) n0, ...
X Description: 2.0b4 and master import matplotlib as mpl from matplotlib import pyplot as plt import numpy as np mpl.rcdefaults() mpl.rcParams["hist.bins"] = "auto" np.random.seed(1) x = np.ra...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7356
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plt.hist does not obey the hist.bins rcparams","articleBody":"2.0b4 and master\n\n```\nimport matplotlib as mpl\nfrom matplotlib import pyplot as plt\nimport numpy as np\n\nmpl.rcdefaults()\nmpl.rcParams[\"hist.bins\"] = \"auto\"\n\nnp.random.seed(1)\nx = np.random.rand(1000)\nn0, b0, p0 = plt.hist(x)\nn1, b1, p1 = plt.hist(x, \"auto\")\nprint(n0)\nprint(n1)\nplt.show()\n```\n\nThe first histogram has 10 bins, the second one has 11 bins.\n\nNote that this does _not_ affect calling the `hist` method on an explicitly created Axes object.\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-10-27T05:10:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/7356/matplotlib/issues/7356"}
| 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:f5421e8b-7a55-7c4d-9d91-3393ecd8b836 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8BE:1BD726:12A7DC0:18AE91C:6A54252F |
| html-safe-nonce | dae782bd29392db39bc91a97d60cbb0b4f826beaeee98fcd0d39ce761fcc6fb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEJFOjFCRDcyNjoxMkE3REMwOjE4QUU5MUM6NkE1NDI1MkYiLCJ2aXNpdG9yX2lkIjoiNDkwODU5MzI3Mzk3Nzk3MjAxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fbd9f7e02ffa2f7fe50182e11c199202f333bb2f37c9c8a94aca16c305881abd |
| hovercard-subject-tag | issue:185574591 |
| 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/7356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6feac08dadf87acdc4382ab2e6b33f1ff878472cbe0d8bf88f23161b102c6091/matplotlib/matplotlib/issues/7356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6feac08dadf87acdc4382ab2e6b33f1ff878472cbe0d8bf88f23161b102c6091/matplotlib/matplotlib/issues/7356 |
| og:image:alt | 2.0b4 and master import matplotlib as mpl from matplotlib import pyplot as plt import numpy as np mpl.rcdefaults() mpl.rcParams["hist.bins"] = "auto" np.random.seed(1) x = np.random.rand(1000) n0, ... |
| 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 | 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