Title: [ENH]: Data tooltip support · Issue #23378 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Data tooltip support · Issue #23378 · matplotlib/matplotlib
X Title: [ENH]: Data tooltip support · Issue #23378 · matplotlib/matplotlib
Description: Problem To better support interactivity and contextual data, we should support data tooltips. Proposed solution Things to be done: Add tooltip API to backend_bases. This should be similar to the picker functionality, only with hover inst...
Open Graph Description: Problem To better support interactivity and contextual data, we should support data tooltips. Proposed solution Things to be done: Add tooltip API to backend_bases. This should be similar to the pi...
X Description: Problem To better support interactivity and contextual data, we should support data tooltips. Proposed solution Things to be done: Add tooltip API to backend_bases. This should be similar to the pi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23378
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Data tooltip support","articleBody":"### Problem\n\nTo better support interactivity and contextual data, we should support data tooltips.\r\n\n\n### Proposed solution\n\nThings to be done:\r\n\r\n1) Add tooltip API to `backend_bases`. This should be similar to the picker functionality, only with hover instead of click. T.b.d.: Do we want a `TooltipEvent` or a more general `HoverEvent`?\r\n2) Implement that API for the backends. As a first step or prove of concept one could start with one backend, e.g. Qt and add the other backends later. ipympl could/should follow at some point as well.\r\n3) Add high-level API to support setting tooltips.\r\n We likely want at least:\r\n - explicit strings: `plt.plot(x, y, tooltip=['A', 'B', 'C', 'D'])`\r\n - `data` support: `plt.plot('x', 'y', tooltip='label', data=data)`\r\n - functions: `plt.plot(x, y, tooltip=lambda x, y: f'({x}, {y})')`\r\n ","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2022-07-01T15:12:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/23378/matplotlib/issues/23378"}
| 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:420d7663-58e9-fe82-e0ae-f7d635b9c1cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8452:39331A:0605:0783:6A52549D |
| html-safe-nonce | 8891d993ea3635fb1feca1557407286b86d70c6a2df767ac273d1b4d804dd760 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDUyOjM5MzMxQTowNjA1OjA3ODM6NkE1MjU0OUQiLCJ2aXNpdG9yX2lkIjoiNTk5MzQzNTMxMjEwNTM0NjIwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e0cb9aa97a5ddb462c9a058f6dcbb0229a9c38921e3f2d38c03a9ed648588a8 |
| hovercard-subject-tag | issue:1291535384 |
| 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/23378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3be0f0016b94f187a7117530c079b526aea54c8c9800daaa50fa11d263ebafb5/matplotlib/matplotlib/issues/23378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3be0f0016b94f187a7117530c079b526aea54c8c9800daaa50fa11d263ebafb5/matplotlib/matplotlib/issues/23378 |
| og:image:alt | Problem To better support interactivity and contextual data, we should support data tooltips. Proposed solution Things to be done: Add tooltip API to backend_bases. This should be similar to the pi... |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width