Title: [Bug]: Hexbin gridsize interpreted differently for x and y · Issue #21349 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Hexbin gridsize interpreted differently for x and y · Issue #21349 · matplotlib/matplotlib
X Title: [Bug]: Hexbin gridsize interpreted differently for x and y · Issue #21349 · matplotlib/matplotlib
Description: Bug summary gridsize results in 2x the expected number of elements in y-direction Code for reproduction import matplotlib.pyplot as plt import numpy as np np.random.seed(19680801) n = 100000 x = np.random.standard_normal(n) y = 2.0 + 3.0...
Open Graph Description: Bug summary gridsize results in 2x the expected number of elements in y-direction Code for reproduction import matplotlib.pyplot as plt import numpy as np np.random.seed(19680801) n = 100000 x = np...
X Description: Bug summary gridsize results in 2x the expected number of elements in y-direction Code for reproduction import matplotlib.pyplot as plt import numpy as np np.random.seed(19680801) n = 100000 x = np...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21349
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Hexbin gridsize interpreted differently for x and y","articleBody":"### Bug summary\r\n\r\ngridsize results in 2x the expected number of elements in y-direction\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nnp.random.seed(19680801)\r\nn = 100000\r\nx = np.random.standard_normal(n)\r\ny = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n)\r\n\r\nfig, ax = plt.subplots(figsize=(6, 6))\r\nh = ax.hexbin(x, y, gridsize=(10, 10), marginals=True, reduce_C_function=np.sum)\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\n\r\n\r\nThis image was taken with `gridsize=(10, 5)` but should be the result of `gridsize=(10, 10)`.\r\n\r\n","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2021-10-13T20:50:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/21349/matplotlib/issues/21349"}
| 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:2f56bed6-0d20-092a-4dc6-e7e2aab47f06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8266:171DD4:1834A1D:2039178:6A52BB46 |
| html-safe-nonce | 543795bc286f38146efb45ece939f6da30e957290c7cd97049aee0bcb6c676cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjY2OjE3MURENDoxODM0QTFEOjIwMzkxNzg6NkE1MkJCNDYiLCJ2aXNpdG9yX2lkIjoiODY1NTA1NTM2NDY2NzEyODY0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6eae8760a3c6f292af017b5ac2ac2953bbb8ed0d4c011dd8f3dbced7a615b0de |
| hovercard-subject-tag | issue:1025684503 |
| 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/21349/issue_layout |
| twitter:image | https://opengraph.githubassets.com/971905747838437b02aa63c0880ae9afe10286f1000723063975e2d32317012f/matplotlib/matplotlib/issues/21349 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/971905747838437b02aa63c0880ae9afe10286f1000723063975e2d32317012f/matplotlib/matplotlib/issues/21349 |
| og:image:alt | Bug summary gridsize results in 2x the expected number of elements in y-direction Code for reproduction import matplotlib.pyplot as plt import numpy as np np.random.seed(19680801) n = 100000 x = np... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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