René's URL Explorer Experiment


Title: ENH: Scroll to zoom by timhoffm · Pull Request #30405 · matplotlib/matplotlib · GitHub

Open Graph Title: ENH: Scroll to zoom by timhoffm · Pull Request #30405 · matplotlib/matplotlib

X Title: ENH: Scroll to zoom by timhoffm · Pull Request #30405 · matplotlib/matplotlib

Description: Implements a minimal version of #20317, in particular #20317 (comment): When any of the axes manipulation tools is active (pan or zoom tool), a mouse scroll results in a zoom towards the cursor, keeping aspect ratio. I've decided to require an active manipulation tool, so that without any active tool the plot cannot be changed (accidentally) - as before. For convenience, scroll-to-zoom is allowed with both the zoom and pan tools. Limiting further feels unnecessarily restrictive. Zooming is also limited to not having a modifier key pressed. This is because we might later want to add scroll+modifiers for other operations . It's better for now not to react to these at all to not introduce behaviors we later want to change. Closes #28412.

Open Graph Description: Implements a minimal version of #20317, in particular #20317 (comment): When any of the axes manipulation tools is active (pan or zoom tool), a mouse scroll results in a zoom towards the cursor, ke...

X Description: Implements a minimal version of #20317, in particular #20317 (comment): When any of the axes manipulation tools is active (pan or zoom tool), a mouse scroll results in a zoom towards the cursor, ke...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4142ec72-fd93-fdf2-06cb-276ab1847574
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC4AE:130837:1F3746:2955D3:6A51B848
html-safe-noncee3a5613697fb6aeeed546e810de20204a09a525b1402126d538142384c062090
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEFFOjEzMDgzNzoxRjM3NDY6Mjk1NUQzOjZBNTFCODQ4IiwidmlzaXRvcl9pZCI6Ijg3Njk2MDYzMTI4NjQ2MjY3NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8b0f8402965f3bfc8fe39d4c2a50eacee1e7539b687b0aaddbfcd873c709ef8e
hovercard-subject-tagpull_request:2728973160
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/30405/files
twitter:imagehttps://avatars.githubusercontent.com/u/2836374?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2836374?s=400&v=4
og:image:altImplements a minimal version of #20317, in particular #20317 (comment): When any of the axes manipulation tools is active (pan or zoom tool), a mouse scroll results in a zoom towards the cursor, ke...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/30405/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F30405%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F30405%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
Reloadhttps://github.com/matplotlib/matplotlib/pull/30405/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/30405/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/30405/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30405/files
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30405/files
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 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 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests 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/pulse
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
timhoffmhttps://github.com/timhoffm
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
timhoffm:scroll-to-zoomhttps://github.com/timhoffm/matplotlib/tree/scroll-to-zoom
Conversation 36 https://github.com/matplotlib/matplotlib/pull/30405
Commits 11 https://github.com/matplotlib/matplotlib/pull/30405/commits
Checks 41 https://github.com/matplotlib/matplotlib/pull/30405/checks
Files changed 3 https://github.com/matplotlib/matplotlib/pull/30405/files
ENH: Scroll to zoom https://github.com/matplotlib/matplotlib/pull/30405/files#top
Show all changes 11 commits https://github.com/matplotlib/matplotlib/pull/30405/files
79b7725 ENH: Scroll to zoom timhoffm Aug 7, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/79b7725cc5553d2d73fbf7a6b85dc015e917d3b5
e8c99e5 Apply suggestions from code review timhoffm Aug 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/e8c99e5956c9b47f9e9532647a0f29bd67d049c6
58d922f Only scroll-to-zoom on rectilinear Axes timhoffm Aug 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/58d922f0f2d2c84f0623798199af1944a99abb16
b19571b Minor simplification timhoffm Aug 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/b19571b36b8ea5c31bbb93cdf82575e8945fcbed
55f1d34 Scroll to zoom in screen coordinates timhoffm Sep 4, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/55f1d3483cc798e16ba12661a546fb8b0863aa53
c883c9f Increase zoom step from 5% to 10% timhoffm Sep 4, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/c883c9fc7d76effb588af53aaab3dbf2d789e226
3f9098d Zooming in and out restores the exact original view timhoffm Sep 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/3f9098d9640f17da5004cd953a0eda1860739754
8032f52 Use one transform call for both x and y timhoffm Sep 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/8032f524a64e23f8f0f1e894d0ef58cafc7d6f70
413402b Change zoom behavior timhoffm Sep 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/413402b89270ef8667e3819eb67040d86a044861
f5ba730 Fine tune zoom factor timhoffm Sep 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/f5ba730a9310cfb1058a17c0bdab4d51b643f079
3ee98fd Still require toolbar for interactive navigation timhoffm Sep 8, 2025 https://github.com/matplotlib/matplotlib/pull/30405/commits/3ee98fd07382b1f4ed1bafaa7a14fb0ab7be174e
Clear filters https://github.com/matplotlib/matplotlib/pull/30405/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30405/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30405/files
scroll_to_zoom.rst https://github.com/matplotlib/matplotlib/pull/30405/files#diff-5be9701b777965664ca6d1cbcd1c688a5204aed862ca8c21dbc67e56cf66ae7b
backend_bases.py https://github.com/matplotlib/matplotlib/pull/30405/files#diff-c21fb96269cbb9b214edf0c22981b347d8b710abaad167da678242ce8a539bb2
backend_bases.pyi https://github.com/matplotlib/matplotlib/pull/30405/files#diff-9c6209d4fee39ae1e357959cbaa2b43439daf300fa5969e6d659a26f8d631d0a
doc/release/next_whats_new/scroll_to_zoom.rsthttps://github.com/matplotlib/matplotlib/pull/30405/files#diff-5be9701b777965664ca6d1cbcd1c688a5204aed862ca8c21dbc67e56cf66ae7b
View file https://github.com/timhoffm/matplotlib/blob/3ee98fd07382b1f4ed1bafaa7a14fb0ab7be174e/doc/release/next_whats_new/scroll_to_zoom.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/30405/{{ revealButtonHref }}
lib/matplotlib/backend_bases.pyhttps://github.com/matplotlib/matplotlib/pull/30405/files#diff-c21fb96269cbb9b214edf0c22981b347d8b710abaad167da678242ce8a539bb2
View file https://github.com/timhoffm/matplotlib/blob/3ee98fd07382b1f4ed1bafaa7a14fb0ab7be174e/lib/matplotlib/backend_bases.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/30405/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-c21fb96269cbb9b214edf0c22981b347d8b710abaad167da678242ce8a539bb2
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-c21fb96269cbb9b214edf0c22981b347d8b710abaad167da678242ce8a539bb2
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-c21fb96269cbb9b214edf0c22981b347d8b710abaad167da678242ce8a539bb2
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-c21fb96269cbb9b214edf0c22981b347d8b710abaad167da678242ce8a539bb2
lib/matplotlib/backend_bases.pyihttps://github.com/matplotlib/matplotlib/pull/30405/files#diff-9c6209d4fee39ae1e357959cbaa2b43439daf300fa5969e6d659a26f8d631d0a
View file https://github.com/timhoffm/matplotlib/blob/3ee98fd07382b1f4ed1bafaa7a14fb0ab7be174e/lib/matplotlib/backend_bases.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/30405/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-9c6209d4fee39ae1e357959cbaa2b43439daf300fa5969e6d659a26f8d631d0a
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-9c6209d4fee39ae1e357959cbaa2b43439daf300fa5969e6d659a26f8d631d0a
https://github.com/matplotlib/matplotlib/pull/30405/files#diff-9c6209d4fee39ae1e357959cbaa2b43439daf300fa5969e6d659a26f8d631d0a
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/30405/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

Viewport: width=device-width


URLs of crawlers that visited me.