Title: Cannot access hexbin data when `xscale='log'` and `yscale='log'` are set. · Issue #18045 · matplotlib/matplotlib · GitHub
Open Graph Title: Cannot access hexbin data when `xscale='log'` and `yscale='log'` are set. · Issue #18045 · matplotlib/matplotlib
X Title: Cannot access hexbin data when `xscale='log'` and `yscale='log'` are set. · Issue #18045 · matplotlib/matplotlib
Description: Bug report plt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets() plt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets() I've made a log-log hexbin plot and would like to access the points generated by h...
Open Graph Description: Bug report plt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets() plt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets() I've made a log-log hexbin plot and would ...
X Description: Bug report plt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets() plt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets() I've made a log-log he...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18045
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot access hexbin data when `xscale='log'` and `yscale='log'` are set.","articleBody":"### Bug report\r\n\r\n```python\r\nplt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets()\r\nplt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets()\r\n```\r\n\r\nI've made a log-log hexbin plot and would like to access the points generated by `hexbin` so I can make a contour. I cannot access these points for two reasons:\r\n\r\n1) The documentation is incorrect and states that `PolyCollection.get_offset()` should be called, but it is `PolyCollection.get_offsets()` (note plural). See 1st bullet point under `returns` here https://matplotlib.org/3.3.0/api/_as_gen/matplotlib.pyplot.hexbin.html\r\n\r\n2) When I call `get_offsets()` if `xscale='log'` and `yscale='log'` are set, I only get `array([[0., 0.]])` rather than the points.\r\n\r\n","author":{"url":"https://github.com/mankoff","@type":"Person","name":"mankoff"},"datePublished":"2020-07-23T23:02:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/18045/matplotlib/issues/18045"}
| 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:9ebb9f05-afbf-14dc-0173-3bd8d64fc710 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B43C:2DCEA7:42AA88:57B9C2:6A52FBAF |
| html-safe-nonce | e149abbd3cbc85c62d78c1ae3e8e2ebcfd4f9be74deddd91a045fe3ae8992baa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDNDOjJEQ0VBNzo0MkFBODg6NTdCOUMyOjZBNTJGQkFGIiwidmlzaXRvcl9pZCI6IjQxNTUzNTEzMTU1ODM3OTQwOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 699056b1c064fa46c098b142c2f5b6a4ed0ade1dfb647c4fc997c0189345b527 |
| hovercard-subject-tag | issue:664815331 |
| 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/18045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c22982459a602a139db8989b4d67154a169a0cefd0efcc7b7f4c84fc134f7612/matplotlib/matplotlib/issues/18045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c22982459a602a139db8989b4d67154a169a0cefd0efcc7b7f4c84fc134f7612/matplotlib/matplotlib/issues/18045 |
| og:image:alt | Bug report plt.hexbin([1,10,100],[1,10,100], mincnt=1).get_offsets() plt.hexbin([1,10,100],[1,10,100], mincnt=1, xscale='log', yscale='log').get_offsets() I've made a log-log hexbin plot and would ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mankoff |
| 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