René's URL Explorer Experiment


Title: Rectangle Selector Upgrade by blink1073 · Pull Request #3937 · matplotlib/matplotlib · GitHub

Open Graph Title: Rectangle Selector Upgrade by blink1073 · Pull Request #3937 · matplotlib/matplotlib

X Title: Rectangle Selector Upgrade by blink1073 · Pull Request #3937 · matplotlib/matplotlib

Description: 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 been drawn Keyboard modifiers: Alt or Space moves the existing shape (as does dragging the center handle) Shift makes the shape square (or circular) Ctrl makes the initial point the center of the shape (helpful for ellipses) Ctrl and shift can be combined The API is the same (unless using the modifier keys), but we add the interactive keyword arg to enable the new behavior.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/matplotlib/matplotlib/pull/3937

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:532c727a-7fe7-bbea-64f8-6da08fa33c14
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB2BA:26601B:65D580:8C5EAF:6B0690AA
html-safe-nonce0e657abab73d22d5d5b9dd9dc458018b0c8311d156bc7c350dc9a1534e10bda6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkJBOjI2NjAxQjo2NUQ1ODA6OEM1RUFGOjZCMDY5MEFBIiwidmlzaXRvcl9pZCI6IjMxODk0NDIzNjM2MTc4NzQwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac03c44e94c1a156893d04a7525019cf6fe0ab70cf6f5ef818c61c664d3a099966
hovercard-subject-tagpull_request:26411501
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/3937/files
twitter:imagehttps://avatars.githubusercontent.com/u/2096628?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2096628?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/3937/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F3937%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F3937%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/matplotlib/matplotlib/pull/3937/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/3937/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/3937/files
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests429 (429)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmatplotlib%2Fmatplotlib%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib%2Fissues%2Fnew%2Fchoose
tacaswellhttps://github.com/tacaswell
matplotlib:masterhttps://github.com/matplotlib/matplotlib/tree/master
blink1073:rectangle_selector_upgradehttps://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 pagehttps://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 pagehttps://github.com/matplotlib/matplotlib/pull/3937/files
Please reload this pagehttps://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.pyhttps://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.pyhttps://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
tacaswellhttps://github.com/tacaswell
Dec 24, 2014https://github.com/matplotlib/matplotlib/pull/3937/files#r22245188
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://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 pagehttps://github.com/matplotlib/matplotlib/pull/3937/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.