| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:532c727a-7fe7-bbea-64f8-6da08fa33c14 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B2BA:26601B:65D580:8C5EAF:6B0690AA |
| html-safe-nonce | 0e657abab73d22d5d5b9dd9dc458018b0c8311d156bc7c350dc9a1534e10bda6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkJBOjI2NjAxQjo2NUQ1ODA6OEM1RUFGOjZCMDY5MEFBIiwidmlzaXRvcl9pZCI6IjMxODk0NDIzNjM2MTc4NzQwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 03c44e94c1a156893d04a7525019cf6fe0ab70cf6f5ef818c61c664d3a099966 |
| hovercard-subject-tag | pull_request:26411501 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/3937/files |
| twitter:image | https://avatars.githubusercontent.com/u/2096628?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2096628?s=400&v=4 |
| og:image:alt | This builds on #3486 and #3502.
This improves the RectangleSelector and adds an EllipseSelector with minimal code differences.
Improvements:
Visible handles for manipulating the shape after it has... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
| Skip to content | https://github.com/matplotlib/matplotlib/pull/3937/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F3937%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F3937%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=matplotlib%2Fmatplotlib |
| Reload | https://github.com/matplotlib/matplotlib/pull/3937/files |
| Reload | https://github.com/matplotlib/matplotlib/pull/3937/files |
| Reload | https://github.com/matplotlib/matplotlib/pull/3937/files |
| matplotlib | https://github.com/matplotlib |
| matplotlib | https://github.com/matplotlib/matplotlib |
| Code | https://github.com/matplotlib/matplotlib |
| Issues1k (1k) | https://github.com/matplotlib/matplotlib/issues |
| Pull requests429 (429) | https://github.com/matplotlib/matplotlib/pulls |
| Actions | https://github.com/matplotlib/matplotlib/actions |
| Projects | https://github.com/matplotlib/matplotlib/projects |
| Wiki | https://github.com/matplotlib/matplotlib/wiki |
| Security and quality | https://github.com/matplotlib/matplotlib/security |
| Insights | https://github.com/matplotlib/matplotlib/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmatplotlib%2Fmatplotlib%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib%2Fissues%2Fnew%2Fchoose |
| tacaswell | https://github.com/tacaswell |
| matplotlib:master | https://github.com/matplotlib/matplotlib/tree/master |
| blink1073:rectangle_selector_upgrade | https://github.com/blink1073/matplotlib/tree/rectangle_selector_upgrade |
|
Conversation
88
| https://github.com/matplotlib/matplotlib/pull/3937 |
|
Commits
48
| https://github.com/matplotlib/matplotlib/pull/3937/commits |
|
Checks
0
| https://github.com/matplotlib/matplotlib/pull/3937/checks |
|
Files changed
| https://github.com/matplotlib/matplotlib/pull/3937/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/3937/files |
|
Rectangle Selector Upgrade
| https://github.com/matplotlib/matplotlib/pull/3937/files#top |
|
Show all changes
48 commits
| https://github.com/matplotlib/matplotlib/pull/3937/files |
|
2ed0d49
Store prev event to handle out of bounds selections
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/2ed0d496ad0ae91d5b6e022ca887699a5dc4df3a |
|
f8eefe6
Upgrade RectangleSelector with ToolHandles and add Ellipse
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/f8eefe6138f819b8335cc803f668115a82c2faa4 |
|
7f044cf
Add toolhandles class
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/7f044cff4f83dc5facc07c6e2f980b3d7ca927ff |
|
f450df6
Add test using tool handles
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/f450df639b9f40f4cc339d7126a6e1245e568e92 |
|
79294e0
Add a helper function to get axes
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/79294e05e695e32eef64a00d250e0d670b60eed9 |
|
fd264a2
Do not allow extents outside the image and add a path property
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/fd264a227e14401f27a8444762d6a4e284f769ef |
|
438715f
Finish rectangle handle tests and add ellipse test with key modifiers
Dec 19, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/438715f931192fd6302942191643145ed2a560c4 |
|
e560713
Rename path property to geometry and return consistent results.
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/e5607136255696558e9d4580ba478cf506755ad9 |
|
5025ba2
Add geometry tests.
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/5025ba2aeec3b1c99309e728c757815462479990 |
|
b118294
Remove extra line.
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/b118294094dc476d28bd9566667839a76f98628d |
|
b15cf12
Refactor the event handling methods
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/b15cf12ebe8ae7d1977aaaec7ccb8868857da52f |
|
e96fe81
Update rectangle logic to include '_moving'
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/e96fe811be1081cfb0e70741459ceea5ea9f5552 |
|
240cfa2
Clean up event handling and add a state attribute
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/240cfa2d699e95c7dfe2d4cf7e7ee5977329e7de |
|
7915db8
Add state handling to onmove
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/7915db8c28b0544606f444fcf2077ab85c56d6d2 |
|
f7a9222
More "state" refactoring
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/f7a9222f2e5b65dbb9d690096fd4ed30d8771d6b |
|
7c04e25
Add key release and continue refactoring state handling
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/7c04e257a0b5539c6984ecf646b42274057268a8 |
|
cf491db
Recreate the _get_data method and more event refactoring
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/cf491db131d19d0f7caad79334851528d783d39e |
|
7ece2fa
Refactor the event creator to call the private methods
Dec 20, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/7ece2fa1475011ec6f5e5c978545e1042700c621 |
|
59ccd81
Preserve existing api for event handler functions
Dec 21, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/59ccd8170b0fc23fb94dfc47621c15109a2cfc9b |
|
a033e8e
Preserve event return values
Dec 24, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/a033e8e078c07030eba63ea2e9ee22a1e4080503 |
|
2923f97
Add cleanup to tests and fix default rect prop
Dec 24, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/2923f97c3bb23a64d0a2cd4204d17a9c2f66bb16 |
|
6549538
Pep8 fixes
Dec 24, 2014
| https://github.com/matplotlib/matplotlib/pull/3937/commits/6549538a40e35d0f9a953ea0b8261b3987546762 |
|
491276e
Fix bug in SpanSelector when blit=True
Jan 17, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/491276eecec4d6d04fe17cd96de1a9d3d52c8062 |
|
744308c
Clear events after valid release
Jan 18, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/744308cad3a1e74b086885e0bf2918a20357378c |
|
a7518b3
Do not attempt to draw artists if ax is invisible
Jan 18, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/a7518b32d06f034bd1e375ab21660ca1574cc81e |
|
77dc52b
Ignore events when axes are invisible
Jan 18, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/77dc52bd4d3bc56f63a711d52f06cc8e6de8a311 |
|
48ebf30
Fix span selector onmove when we exit axes
Feb 21, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/48ebf30bd36014eb5912112ba61b756fc91a82af |
|
3ffd7c0
Restore previous behaviour and allow escape to clear the current sele…
Aug 19, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/3ffd7c01900d9307b40656595c32a667e9acd5b7 |
|
e802991
Fix failing tests
Aug 19, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/e8029913cca52bc53d909fe2428d66fa5af9bb10 |
|
af6e1b4
Fix handling of center handle
Aug 20, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/af6e1b46e888dc8aafba7f76a599a52f137b105e |
|
f5666a4
Remove debug print
Aug 20, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/f5666a4714142bc44dff3ec5f909276c4afe11db |
|
545a727
STY: PEP8
tacaswell Aug 22, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/545a727d41cf062bacedab8bf49162f7107b8145 |
|
feb58fe
FIX: do not call draw_idle if blitting
tacaswell Aug 22, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/feb58fef166916ee702a32069bdd304dd5a8e815 |
|
7bd67d2
DOC: make rectangle demo use handles
tacaswell Aug 22, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/7bd67d2f1468e5f918ead97dbef5146cf31ffaf5 |
|
b60a84d
Add docstring for EllipseSelector and use print() statements
Aug 22, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/b60a84d960363a4f7afa0a531adae3cd01449b97 |
|
840a671
Revert to old draw types and add docs about key modifiers
Aug 23, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/840a671435d3afcb834cdd2e60d327288279ef90 |
|
2a11f5f
Revert change to the example
Aug 23, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/2a11f5f4bc40ef2ddf6e744564526e43aa595573 |
|
8da7985
Remove extra draw_idle trigger
Aug 23, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/8da7985553585af349decbfb76ad6b9146f5ce71 |
|
cfe4df1
Update the docstring
Aug 23, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/cfe4df18ed0e73f533d2458efbe6965693aeea26 |
|
bc225b6
Remove extraneous doc
Aug 23, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/bc225b69419bbb49f7da239762e7afa26ae7bf95 |
|
59145af
Fix failing test
Aug 23, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/59145aff79d93f0093975ee04246f8760cffdf19 |
|
d491ac9
Update docstring, use self.useblit, use space for move
Aug 25, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/d491ac91ca541c988980688935790ebc821555e2 |
|
8e8e473
Use new state_modifier_keys dictionary
Aug 26, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/8e8e473259c91dab2a031dcf7e9e3957d05e9030 |
|
2ed0419
Clear the active handle when invisible
Aug 26, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/2ed0419d1da46c2411eef5a64da6560a8af3bb87 |
|
d5b5d86
Collapse the shape on improper draw to prevent showing the previous s…
Aug 26, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/d5b5d86bac7fb77163312df8a2d769d0e2fc8c74 |
|
87ab199
Fix test using 'alt' key
Aug 26, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/87ab1994530d26130cb6e7d0b6af4abe7f322585 |
|
9eaae32
Clean up and add more docs
Sep 1, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/9eaae3230e6f3f98d8833aecc924072b6791af55 |
|
819804f
Make on_key_release use the state_modifier_keys
Sep 1, 2015
| https://github.com/matplotlib/matplotlib/pull/3937/commits/819804fda0bc11c36e370b95a3b6b3e1a3368b48 |
|
Clear filters
| https://github.com/matplotlib/matplotlib/pull/3937/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/3937/files |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/3937/files |
|
rectangle_selector.py
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-e9e70d59285a54da694c9ee8cef3eeac2192a4ed51e5a6e62a4926764ad17ffc |
|
test_widgets.py
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
widgets.py
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-7e2b57811ea0cf4c29c147f61cff569194cdddfa9fea35eb897b4d786dca06ce |
| examples/widgets/rectangle_selector.py | https://github.com/matplotlib/matplotlib/pull/3937/files#diff-e9e70d59285a54da694c9ee8cef3eeac2192a4ed51e5a6e62a4926764ad17ffc |
|
View file
| https://github.com/blink1073/matplotlib/blob/819804fda0bc11c36e370b95a3b6b3e1a3368b48/examples/widgets/rectangle_selector.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/3937/{{ revealButtonHref }} |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-e9e70d59285a54da694c9ee8cef3eeac2192a4ed51e5a6e62a4926764ad17ffc |
| lib/matplotlib/tests/test_widgets.py | https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
View file
| https://github.com/blink1073/matplotlib/blob/819804fda0bc11c36e370b95a3b6b3e1a3368b48/lib/matplotlib/tests/test_widgets.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/3937/{{ revealButtonHref }} |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
| tacaswell | https://github.com/tacaswell |
| Dec 24, 2014 | https://github.com/matplotlib/matplotlib/pull/3937/files#r22245188 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/3937/files |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
|
| https://github.com/matplotlib/matplotlib/pull/3937/files#diff-49bef07a6ad7921c1aedc5b8786e8f86f5cd96ac5bb639b6d431f9d2b07d784c |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/3937/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |