Title: Pick events broken in log axes · Issue #3540 · matplotlib/matplotlib · GitHub
Open Graph Title: Pick events broken in log axes · Issue #3540 · matplotlib/matplotlib
X Title: Pick events broken in log axes · Issue #3540 · matplotlib/matplotlib
Description: Handling pick events does not work on logarithmic axes. See the example below. As long as the line statement ax.set_xscale('log') is commented out, clicking on the polygons created by axvspan xauses them to change from gray to red. Uncom...
Open Graph Description: Handling pick events does not work on logarithmic axes. See the example below. As long as the line statement ax.set_xscale('log') is commented out, clicking on the polygons created by axvspan xause...
X Description: Handling pick events does not work on logarithmic axes. See the example below. As long as the line statement ax.set_xscale('log') is commented out, clicking on the polygons created by axvsp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3540
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pick events broken in log axes","articleBody":"Handling pick events does not work on logarithmic axes. See the example below. As long as the line statement `ax.set_xscale('log')` is commented out, clicking on the polygons created by `axvspan` xauses them to change from gray to red. Uncomment that line to make the x axis logarithmic, and clicking on the polygons has either no effect or is misdirected to the far-left polygon only.\n\n``` python\n from matplotlib import pyplot as plt\n fig = plt.figure()\n ax = fig.add_subplot(111)\n ax.set_xlim(1, 10)\n for i in range(1, 10, 3):\n ax.axvspan(i, i + 1, color='gray', picker=True)\n\n # uncomment this line to break the picker\n # ax.set_xscale('log')\n\n def onpick(event):\n event.artist.set_color('red')\n fig.canvas.draw()\n\n fig.canvas.mpl_connect('pick_event', onpick)\n plt.show()\n```\n\nTested on version 1.4.0 and master as of 04496b056f1995e1c54e6a5feb5be9256e2d8e9b on Mac OS X Mavericks.\n\n[TAC edited for formatting]\n","author":{"url":"https://github.com/lpsinger","@type":"Person","name":"lpsinger"},"datePublished":"2014-09-19T01:35:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/3540/matplotlib/issues/3540"}
| 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:5abd4af1-96a4-d2b9-ec44-a28425a85b2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C868:15E14F:901721:C6EAFD:6A5392DF |
| html-safe-nonce | 48aa48c416b772d35e0cfc8b11c9208104ae217ee56fe1565a64811d5a6fc2a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODY4OjE1RTE0Rjo5MDE3MjE6QzZFQUZEOjZBNTM5MkRGIiwidmlzaXRvcl9pZCI6IjY3MDc0Nzc5NDU4MDI1Mjc0NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0cc3fd3b036603b9e8038202f1d36dd6b55631b126ebca81e079153f6443de5e |
| hovercard-subject-tag | issue:43196401 |
| 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/3540/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c38090fff812dd15518bc8ff5e1225c539aea1acbd08a60b88fcad35d32fa1c2/matplotlib/matplotlib/issues/3540 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c38090fff812dd15518bc8ff5e1225c539aea1acbd08a60b88fcad35d32fa1c2/matplotlib/matplotlib/issues/3540 |
| og:image:alt | Handling pick events does not work on logarithmic axes. See the example below. As long as the line statement ax.set_xscale('log') is commented out, clicking on the polygons created by axvspan xause... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lpsinger |
| 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