René's URL Explorer Experiment


Title: Hint how to set axis limits with margins by dlukes · Pull Request #25962 · matplotlib/matplotlib · GitHub

Open Graph Title: Hint how to set axis limits with margins by dlukes · Pull Request #25962 · matplotlib/matplotlib

X Title: Hint how to set axis limits with margins by dlukes · Pull Request #25962 · matplotlib/matplotlib

Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

Open Graph Description: PR summary I recently came across a use case where I wanted to manually tweak axis limits, but also apply the margins which are added when autoscaling. It took me a while to figure out how to do th...

X Description: PR summary I recently came across a use case where I wanted to manually tweak axis limits, but also apply the margins which are added when autoscaling. It took me a while to figure out how to do th...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:fd302063-f162-d4c9-5822-708b13ee0571
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88BC:328753:2C43135:3DE9401:6A50D936
html-safe-noncebbf72b113e08a055e956dc0c92fdef646f3d88917fcfa3c3db384532cff83959
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEJDOjMyODc1MzoyQzQzMTM1OjNERTk0MDE6NkE1MEQ5MzYiLCJ2aXNpdG9yX2lkIjoiNzQzMjE4NDYyMjUxODE2Mzc2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf861ddff44f3ef5c5b56423f1504f7202823140dd8ace881599c19f94ab167a2
hovercard-subject-tagpull_request:1363230552
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/matplotlib/matplotlib/25962/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/988ea48c1aa98cbd88b756e90992511ce19b2b5914f4945026f52f895b5c6106/matplotlib/matplotlib/pull/25962
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/988ea48c1aa98cbd88b756e90992511ce19b2b5914f4945026f52f895b5c6106/matplotlib/matplotlib/pull/25962
og:image:altPR summary I recently came across a use case where I wanted to manually tweak axis limits, but also apply the margins which are added when autoscaling. It took me a while to figure out how to do th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedlukes
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release73ad5c4eaffed7bb3637024653eabdbca84a855e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/25962#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F25962
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%2F25962
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/pull/25962
Reloadhttps://github.com/matplotlib/matplotlib/pull/25962
Reloadhttps://github.com/matplotlib/matplotlib/pull/25962
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
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 411 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
dlukeshttps://github.com/dlukes
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
dlukes:doc/setlim-datalimhttps://github.com/dlukes/matplotlib/tree/doc/setlim-datalim
Conversationhttps://github.com/matplotlib/matplotlib/pull/25962
Commits1 (1)https://github.com/matplotlib/matplotlib/pull/25962/commits
Checkshttps://github.com/matplotlib/matplotlib/pull/25962/checks
Files changedhttps://github.com/matplotlib/matplotlib/pull/25962/files
Hint how to set axis limits with marginshttps://github.com/matplotlib/matplotlib/pull/25962#top
dlukeshttps://github.com/dlukes
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
dlukes:doc/setlim-datalimhttps://github.com/dlukes/matplotlib/tree/doc/setlim-datalim
https://github.com/dlukes
dlukeshttps://github.com/dlukes
May 24, 2023https://github.com/matplotlib/matplotlib/pull/25962#issue-1724117774
link the related issuehttps://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
testedhttps://matplotlib.org/devdocs/devel/testing.html
examplehttps://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-examples-and-tutorials
directive and release notehttps://matplotlib.org/devdocs/devel/coding_guide.html#new-features-and-api-changes
generalhttps://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-rest-pages
docstringhttps://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-docstrings
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
https://github.com/dlukes
Hint how to set axis limits with marginshttps://github.com/matplotlib/matplotlib/pull/25962/commits/6d5f0596281a6fd8269b51cc14d95e1e63a63b79
6d5f059https://github.com/matplotlib/matplotlib/pull/25962/commits/6d5f0596281a6fd8269b51cc14d95e1e63a63b79
https://github.com/melissawm
melissawmhttps://github.com/melissawm
topic: axes https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20axes%22
May 24, 2023https://github.com/matplotlib/matplotlib/pull/25962#event-9328604750
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 24, 2023 https://github.com/matplotlib/matplotlib/pull/25962#pullrequestreview-1442050738
View reviewed changes https://github.com/matplotlib/matplotlib/pull/25962/files/6d5f0596281a6fd8269b51cc14d95e1e63a63b79
github-actionshttps://github.com/apps/github-actions
https://github.com/matplotlib/matplotlib/pull/25962#pullrequestreview-1442050738
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
on gitterhttps://gitter.im/matplotlib/matplotlib
the developer guidehttps://matplotlib.org/devdocs/devel/index.html
Code of Conducthttps://github.com/matplotlib/matplotlib/blob/main/CODE_OF_CONDUCT.md
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
https://github.com/rcomer
rcomerhttps://github.com/rcomer
Documentation https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3ADocumentation
status: needs review https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20review%22
May 28, 2023https://github.com/matplotlib/matplotlib/pull/25962#event-9362299692
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jun 1, 2023 https://github.com/matplotlib/matplotlib/pull/25962#ref-pullrequest-1718390522
“Inactive” workflow: bump operations to 175 #25938 https://github.com/matplotlib/matplotlib/pull/25938
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Jun 1, 2023https://github.com/matplotlib/matplotlib/pull/25962#issuecomment-1571602517
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
https://github.com/rcomer
rcomerhttps://github.com/rcomer
Aug 2, 2023 https://github.com/matplotlib/matplotlib/pull/25962#ref-issue-1799236229
[ENH]: Adapt 2-dim histogram axis limits to content #26288 https://github.com/matplotlib/matplotlib/issues/26288
https://github.com/rcomer
rcomerhttps://github.com/rcomer
status: needs review https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20review%22
Nov 23, 2025https://github.com/matplotlib/matplotlib/pull/25962#event-21122002074
https://github.com/rcomer
rcomerhttps://github.com/rcomer
Nov 23, 2025https://github.com/matplotlib/matplotlib/pull/25962#issuecomment-3567955092
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
https://github.com/rcomer
rcomerhttps://github.com/rcomer
Nov 23, 2025https://github.com/matplotlib/matplotlib/pull/25962#event-21122004145
https://github.com/melissawm
melissawmhttps://github.com/melissawm
First Time Contributorshttps://github.com/orgs/matplotlib/projects/1
Mar 6, 2026https://github.com/matplotlib/matplotlib/pull/25962#event-23342200057
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F25962
https://github.com/apps/github-actions
github-actions[bot] https://github.com/apps/github-actions
https://github.com/matplotlib/matplotlib/pull/25962/files/6d5f0596281a6fd8269b51cc14d95e1e63a63b79
Documentation https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3ADocumentation
topic: axes https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20axes%22
First Time Contributors https://github.com/orgs/matplotlib/projects/1
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/25962
https://github.com/dlukes
https://github.com/timhoffm
https://github.com/rcomer
https://github.com/melissawm
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.