Title: Update Selection Widgets · Issue #3486 · matplotlib/matplotlib · GitHub
Open Graph Title: Update Selection Widgets · Issue #3486 · matplotlib/matplotlib
X Title: Update Selection Widgets · Issue #3486 · matplotlib/matplotlib
Description: I took a stab at updating the selection widgets. Namely, improving the RectangleSelector and LassoSelector, and adding new EllipseSelector, PaintSelector and LineSelector widgets. These are based on a proof of concept I made called image...
Open Graph Description: I took a stab at updating the selection widgets. Namely, improving the RectangleSelector and LassoSelector, and adding new EllipseSelector, PaintSelector and LineSelector widgets. These are based o...
X Description: I took a stab at updating the selection widgets. Namely, improving the RectangleSelector and LassoSelector, and adding new EllipseSelector, PaintSelector and LineSelector widgets. These are based o...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3486
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update Selection Widgets","articleBody":"I took a stab at updating the selection widgets. Namely, improving the `RectangleSelector` and `LassoSelector`, and adding new `EllipseSelector`, `PaintSelector` and `LineSelector` widgets. These are based on a proof of concept I made called [image inspector](https://github.com/blink1073/image_inspector), which in turn is based on the scikit-image [canvastools](https://github.com/scikit-image/scikit-image/blob/master/skimage/viewer/canvastools).\n\nI created a [gist](https://gist.github.com/blink1073/6ecb48889d3c7526f3c5) that demonstrates all the widgets.\n\nImprovements to `RectangleSelector`:\n- Visible handles for manipulating the shape after it has been drawn\n- Keyboard modifiers:\n - Alt moves the existing shape (as does dragging the center handle)\n - Shift makes the shape square (or circular)\n - Ctrl makes the initial point the center of the shape (helpful for ellipses)\n - Ctrl and shift can be combined\n- When `drawmode == 'line'`, actually draw the outline instead of a single line\n\nThe API is the same, but the default `drawmode` has been changed to `'patch'`, while allowing `'box'` to alias to `'patch'`. Also, the shape is no longer invisible after been drawn (so we can interact with it).\n\nImprovements to `LassoSelector`:\n- Unified API with `RectangeSelector`\n- Keyboard modifier:\n - Shift enables `polygon` mode where it draws straight lines\n\nNote that `LassoSelector` had two methods that were renamed: `onpress` -> `press` and `onrelease` -> `release`. The old methods could be kept, and call the new methods while giving a deprecation warning.\n\nHere is a screenshot of the Ellipse tool:\n\n\nHow would you like me to proceed? Throw them all into one PR?\n","author":{"url":"https://github.com/blink1073","@type":"Person","name":"blink1073"},"datePublished":"2014-09-08T01:22:02Z","url":"https://github.com/matplotlib/matplotlib/issues/3486"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:a76688b4-d31c-3905-8490-b9d7d435b450 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D3E:26D2E5:6D6F89:9734E6:6B069311 |
| html-safe-nonce | 56d3f9d05887a72f6ef048be09730cdaa8ba79e87a5636b66d5215feead3280c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDNFOjI2RDJFNTo2RDZGODk6OTczNEU2OjZCMDY5MzExIiwidmlzaXRvcl9pZCI6IjgwMjM3ODE0NzUyMzk3NjA2NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9218ac9f4ab0588e5e03001a1e8f8ea51a1844d33e323b979e24f41880082d33 |
| hovercard-subject-tag | issue:42157970 |
| 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/3486/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a33f0c4c40cf4ec7d5e861ea4ce0b3e5ad41b56b1668d8cf624c107472a2aa3/matplotlib/matplotlib/issues/3486 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a33f0c4c40cf4ec7d5e861ea4ce0b3e5ad41b56b1668d8cf624c107472a2aa3/matplotlib/matplotlib/issues/3486 |
| og:image:alt | I took a stab at updating the selection widgets. Namely, improving the RectangleSelector and LassoSelector, and adding new EllipseSelector, PaintSelector and LineSelector widgets. These are based o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blink1073 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width