Title: [Doc]: document "out-of-the-box" interactivity · Issue #28722 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: document "out-of-the-box" interactivity · Issue #28722 · matplotlib/matplotlib
X Title: [Doc]: document "out-of-the-box" interactivity · Issue #28722 · matplotlib/matplotlib
Description: Documentation Link No response Problem Spun off from the discussion in #28708, the 'for free' interactivity Matplotlib provides - like the sharex/sharey brush linking or the colorbar/color updating or the data cursor - is not documented ...
Open Graph Description: Documentation Link No response Problem Spun off from the discussion in #28708, the 'for free' interactivity Matplotlib provides - like the sharex/sharey brush linking or the colorbar/color updating...
X Description: Documentation Link No response Problem Spun off from the discussion in #28708, the 'for free' interactivity Matplotlib provides - like the sharex/sharey brush linking or the colorbar/color ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28722
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: document \"out-of-the-box\" interactivity","articleBody":"### Documentation Link\r\n\r\n_No response_\r\n\r\n### Problem\r\n\r\nSpun off from the discussion in #28708, the 'for free' interactivity Matplotlib provides - like the sharex/sharey brush linking or the colorbar/color updating or the data cursor - is not documented in an easily discoverable way. \r\n\r\nWhat I mean is, for example sharex/sharey is mostly documented as [a way to have the same ticks](https://matplotlib.org/devdocs/search.html?q=sharex), with the interactivity a bullet point in [the pan/zoom overlap example](https://matplotlib.org/devdocs/gallery/showcase/pan_zoom_overlap.html). \r\n\r\nOr take the [interactivity docs](https://matplotlib.org/devdocs/users/explain/figure/interactive.html), which have a structure of:\r\n* repl based live updating\r\n* GUI/UI options + keybindings\r\n* backends\r\n\r\nAnd the other \"interactivity docs\" are very desktop gui application oriented:\r\n* [how to event loop?](https://matplotlib.org/devdocs/users/explain/figure/interactive_guide.html)\r\n* [event handling/pickling](https://matplotlib.org/devdocs/users/explain/figure/event_handling.html)\r\n\r\nAnd some of the for free things are just undocumented or hard to find:\r\n* #9593 which could be closed by #25187\r\n* #5839\r\n* #19037\r\n\r\n### Suggested improvement\r\n\r\nMy proposal is half restructuring/half writing new docs:\r\n\r\n### User guide\r\nThe reason for \"everything gets its own page\" is b/c I think tighter scoping helps in identifying what docs go on which page, which helps with discoverability and maintainability:\r\n- [ ] going w/ the current structure, pull all the interactivity/event handling docs into their own section/folder\r\n- [ ] use the \"index.html\" to roadmap folks to which part of the interactivity docs they want, which would close #19037\r\n- [ ] create a new \"out-of-the-box\" page that provides an overview of the just there w/ an interactive backend features:\r\n - [ ] pan/zoom, sharex/sharey, draggable, cursors (closing #9593), color updates, etc\r\n- [ ] separate out [interactive.html](https://matplotlib.org/devdocs/users/explain/figure/interactive.html) into seperate pages for each topic:\r\n - [ ] live updating in a repl\r\n - [ ] gui navigation/toolbinding\r\n - [ ] move the backends discussion to [backends.html](https://matplotlib.org/devdocs/users/explain/figure/backends.html) and link out to it in the sections that need this info - like the out of the box overview\r\n\r\n### Tutorials\r\n- [ ] add a tutorial showing how to:\r\n - [ ] use the out of the box things to build a simple data viewer, \r\n - [ ] building on that, add a widgets interaction\r\n - [ ] building on that, write something custom using the events system\r\n\r\nmy plan was rework https://github.com/story645/pydata_nyc_2023 into an interactive GUI agnostic tutorial, but like perfectly cool w/ an alternative so long as it has a similar scaffolded structure b/c this structure covers all the things Matplotlib offers, but in a building on top of previous way. \r\n\r\n### Examples\r\nHopefully just showing how the widgets are interactive will yield discoverability gains:\r\n* #23441 \r\n\r\nETA: I'm willing to do some/most/all of this work myself (or mentor folks/champion PRs) **iff** we get to some rough consensus on a plan. ","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2024-08-14T17:54:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/28722/matplotlib/issues/28722"}
| 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:a1dacd96-8416-8358-608d-a85dbb6cbf9b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B97A:12E3C6:9A2227:CBDC19:6A519CE1 |
| html-safe-nonce | c2ce4b9f17b7b51d68d6e803cd3245122d41be63616d2955daa3eac12f934224 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTdBOjEyRTNDNjo5QTIyMjc6Q0JEQzE5OjZBNTE5Q0UxIiwidmlzaXRvcl9pZCI6IjQzMDI0NzM5MjU2NTk1NjUyODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a4c1c58f1b74719bfee8f3f71417c849ea94a20c35939778dfc0e6c02d11c43a |
| hovercard-subject-tag | issue:2466482834 |
| 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/28722/issue_layout |
| twitter:image | https://opengraph.githubassets.com/824e33cd9a8b0b3d3a00f628f2a2eff50b35edb1684f4edf8a78cd95dca2c0bf/matplotlib/matplotlib/issues/28722 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/824e33cd9a8b0b3d3a00f628f2a2eff50b35edb1684f4edf8a78cd95dca2c0bf/matplotlib/matplotlib/issues/28722 |
| og:image:alt | Documentation Link No response Problem Spun off from the discussion in #28708, the 'for free' interactivity Matplotlib provides - like the sharex/sharey brush linking or the colorbar/color updating... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| 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