René's URL Explorer Experiment


Title: Use data limits plus a little padding by default by mdboom · Pull Request #5583 · matplotlib/matplotlib · GitHub

Open Graph Title: Use data limits plus a little padding by default by mdboom · Pull Request #5583 · matplotlib/matplotlib

X Title: Use data limits plus a little padding by default by mdboom · Pull Request #5583 · matplotlib/matplotlib

Description: This is part of the big style change overhaul for 2.0 Rather than using limits that are "round numbers", this will use the data limits plus a little padding. The complication here is that not all plot types should have the padding. To solve this, it adds left/right/top/bottom margins for each artist which is a boolean. When autoscaling limits, the axes looks at all of its artists and any artist that explicitly sets a margin to False on a given side means the whole axes will not have a margin on that side. Fixes #4891.

Open Graph Description: This is part of the big style change overhaul for 2.0 Rather than using limits that are "round numbers", this will use the data limits plus a little padding. The complication here is that...

X Description: This is part of the big style change overhaul for 2.0 Rather than using limits that are "round numbers", this will use the data limits plus a little padding. The complication here...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c90587e2-207d-6a49-80fb-64ae575ceecd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9816:2D857A:23ED98A:312B5A4:6A53A044
html-safe-noncedb369c6ea134e25afa628aab9d698a407e04f5bbc73c4c13219c8d0b5fa03215
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODE2OjJEODU3QToyM0VEOThBOjMxMkI1QTQ6NkE1M0EwNDQiLCJ2aXNpdG9yX2lkIjoiMjMzNDM4NDEwODA2MTU2NDk5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8e1ae2b6b67e12223825a908bc16319426819c504a52e7af023ea96c7f230e87
hovercard-subject-tagpull_request:52141729
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/5583/files
twitter:imagehttps://avatars.githubusercontent.com/u/38294?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/38294?s=400&v=4
og:image:altThis is part of the big style change overhaul for 2.0 Rather than using limits that are "round numbers", this will use the data limits plus a little padding. The complication here is that...
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/5583/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F5583%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%2F5583%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/5583/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/5583/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/5583/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/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 408 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
tacaswellhttps://github.com/tacaswell
matplotlib:masterhttps://github.com/matplotlib/matplotlib/tree/master
mdboom:paddinghttps://github.com/mdboom/matplotlib/tree/padding
Conversation 17 https://github.com/matplotlib/matplotlib/pull/5583
Commits 6 https://github.com/matplotlib/matplotlib/pull/5583/commits
Checks 0 https://github.com/matplotlib/matplotlib/pull/5583/checks
Files changed https://github.com/matplotlib/matplotlib/pull/5583/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
Use data limits plus a little padding by default https://github.com/matplotlib/matplotlib/pull/5583/files#top
Show all changes 6 commits https://github.com/matplotlib/matplotlib/pull/5583/files
41d7e12 Scale margins to data, plus padding, by default mdboom Nov 8, 2015 https://github.com/matplotlib/matplotlib/pull/5583/commits/41d7e123da84fd7caeb84dbe18d2df48c4752f11
1bad2eb Add test mdboom Nov 30, 2015 https://github.com/matplotlib/matplotlib/pull/5583/commits/1bad2ebf71db574c4c50b77e8fce61a8f734481a
7fd7b7b Update test data mdboom Nov 30, 2015 https://github.com/matplotlib/matplotlib/pull/5583/commits/7fd7b7b416d3d41e2b8412b9c304b8c9c2662153
0e0c005 PEP8 mdboom Nov 30, 2015 https://github.com/matplotlib/matplotlib/pull/5583/commits/0e0c005e88fab2e5dd3644a9c3902fac46ce6aaa
b68950c Add properties in addition to get/set mdboom Dec 2, 2015 https://github.com/matplotlib/matplotlib/pull/5583/commits/b68950c6076b60679ce47a681edb99b8bf7c20a1
73bac38 Update baseline image mdboom Dec 6, 2015 https://github.com/matplotlib/matplotlib/pull/5583/commits/73bac38b9d082c381cddbc748afd6c0000d5f713
Clear filters https://github.com/matplotlib/matplotlib/pull/5583/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
artist.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-387b214c5fcea589dc666d01c8877efc5960ea34625a8de60c857fe312223d63
_axes.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
_base.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-eab8def55235f317e1ea06840d82467044586af2a7f9ec994356a14f70509b72
contour.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-b3f136a845ae5b7383fbc2be280c64af12352a6583ace9658cc4f6e2479df4a3
image.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-25ae7458ece3baeb36f57b6d14661c66781454a7a0532e5847eb4ed425ec0f5f
classic.mplstyle https://github.com/matplotlib/matplotlib/pull/5583/files#diff-791c860253879802fbe1dfd42cd66eb0fb1b0509dbaf66900317e6c9efd20085
rcsetup.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-cbdeb0e4217c66c0eab3ff5027da14906cb705419722f8269bc9ccaadd2422b1
stackplot.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-07917398382925aab7841438c7851a43483e93a5f91d55130f014bc555c3e163
streamplot.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-8f9a86c9f3cb37a475f0ba533c81bdc5a81799565b0d0f8fe5ba9ccdcaf1c42f
default_edges.png https://github.com/matplotlib/matplotlib/pull/5583/files#diff-1cbdeb11c55e8df4b3aae70aadd023abe2364efadb4f821a132e43fce8591f24
pre_transform_data.pdf https://github.com/matplotlib/matplotlib/pull/5583/files#diff-4dcda01d3cb2a79daa0666941fe7b8b7b9a99e3c25035bc5688af2733979c482
pre_transform_data.png https://github.com/matplotlib/matplotlib/pull/5583/files#diff-c9da36d63a775058bb5fab4143e532c6859c647df7329cabb109a117227a5656
pre_transform_data.svg https://github.com/matplotlib/matplotlib/pull/5583/files#diff-60fcc6b56f00575de520beeef4335282988133518ba95cf56725d76d9a03f15a
test_axes.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-ef5144bd27a700deb760ef56ccf51dc6fcfe86723f9ffa84df7f024985bf3ee7
ticker.py https://github.com/matplotlib/matplotlib/pull/5583/files#diff-ffc88dbb928475229d0fc50ae389ef3f0dabc9c5b8abf42b6eb7a0af28afdb66
matplotlibrc.template https://github.com/matplotlib/matplotlib/pull/5583/files#diff-9eaf38a8a7b9d20d5719447762f60b98c69bb8503da6bfa40df69bd2844458cf
lib/matplotlib/artist.pyhttps://github.com/matplotlib/matplotlib/pull/5583/files#diff-387b214c5fcea589dc666d01c8877efc5960ea34625a8de60c857fe312223d63
View file https://github.com/mdboom/matplotlib/blob/73bac38b9d082c381cddbc748afd6c0000d5f713/lib/matplotlib/artist.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/5583/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-387b214c5fcea589dc666d01c8877efc5960ea34625a8de60c857fe312223d63
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-387b214c5fcea589dc666d01c8877efc5960ea34625a8de60c857fe312223d63
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-387b214c5fcea589dc666d01c8877efc5960ea34625a8de60c857fe312223d63
tacaswellhttps://github.com/tacaswell
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46162969
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
mdboomhttps://github.com/mdboom
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46163276
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
mdboomhttps://github.com/mdboom
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46166705
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
tacaswellhttps://github.com/tacaswell
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46166745
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
tacaswellhttps://github.com/tacaswell
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46166950
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
mdboomhttps://github.com/mdboom
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46184757
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
tacaswellhttps://github.com/tacaswell
Nov 30, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46187796
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
mdboomhttps://github.com/mdboom
Dec 1, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46289387
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
tacaswellhttps://github.com/tacaswell
Dec 1, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46291115
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#5594https://github.com/matplotlib/matplotlib/pull/5594
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
mdboomhttps://github.com/mdboom
Dec 1, 2015https://github.com/matplotlib/matplotlib/pull/5583/files#r46294703
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/files
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-387b214c5fcea589dc666d01c8877efc5960ea34625a8de60c857fe312223d63
lib/matplotlib/axes/_axes.pyhttps://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
View file https://github.com/mdboom/matplotlib/blob/73bac38b9d082c381cddbc748afd6c0000d5f713/lib/matplotlib/axes/_axes.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/5583/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/5583/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/5583/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.