René's URL Explorer Experiment


Title: Support placing legend symbols next to axis labels by alexhartl · Pull Request #16005 · matplotlib/matplotlib · GitHub

Open Graph Title: Support placing legend symbols next to axis labels by alexhartl · Pull Request #16005 · matplotlib/matplotlib

X Title: Support placing legend symbols next to axis labels by alexhartl · Pull Request #16005 · matplotlib/matplotlib

Description: PR Summary For twinx() plots it is more space-efficient and intuitive to have legend symbols next to the axis labels instead of in a separate box. This PR adds this functionality, providing plt.xlabel_legend() and plt.ylabel_legend() functions. Example from docstring: PR Checklist Has Pytest style unit tests Code is Flake 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Open Graph Description: PR Summary For twinx() plots it is more space-efficient and intuitive to have legend symbols next to the axis labels instead of in a separate box. This PR adds this functionality, providing plt.xla...

X Description: PR Summary For twinx() plots it is more space-efficient and intuitive to have legend symbols next to the axis labels instead of in a separate box. This PR adds this functionality, providing plt.xla...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d9d8d1c0-5fa7-b0af-c41b-bb9c30cea087
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEC10:227FB6:A3593:D8663:6A52BDC8
html-safe-nonced4089619ac475e4a3af2d2c64b5f660923b426324517a67aa3fd99d3a3bd7581
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzEwOjIyN0ZCNjpBMzU5MzpEODY2Mzo2QTUyQkRDOCIsInZpc2l0b3JfaWQiOiIzNDY0NDg0MjM5NTE2NTQ4NTUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5d5b7ae6574c8d4577a0c27199d3cacea664bdd0167060f0fe8f301f21f5668b
hovercard-subject-tagpull_request:356099458
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/16005/files
twitter:imagehttps://avatars.githubusercontent.com/u/12981647?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12981647?s=400&v=4
og:image:altPR Summary For twinx() plots it is more space-efficient and intuitive to have legend symbols next to the axis labels instead of in a separate box. This PR adds this functionality, providing plt.xla...
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/16005/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F16005%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%2F16005%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/16005/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/16005/files
Reloadhttps://github.com/matplotlib/matplotlib/pull/16005/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/16005/files
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/16005/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
alexhartlhttps://github.com/alexhartl
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
alexhartl:label-legendshttps://github.com/alexhartl/matplotlib/tree/label-legends
Conversation 37 https://github.com/matplotlib/matplotlib/pull/16005
Commits 9 https://github.com/matplotlib/matplotlib/pull/16005/commits
Checks 0 https://github.com/matplotlib/matplotlib/pull/16005/checks
Files changed https://github.com/matplotlib/matplotlib/pull/16005/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/16005/files
Support placing legend symbols next to axis labels https://github.com/matplotlib/matplotlib/pull/16005/files#top
Show all changes 9 commits https://github.com/matplotlib/matplotlib/pull/16005/files
64b97b8 Added axis label legend functionality alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/64b97b80910ef19cbbb7fa706d31aa04197ae958
a81346a Updated boilerplate.py alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/a81346aed36bb89c06772bdb1595e70e4c434061
a507f5d Added 'What's new' file alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/a507f5d457093a0c9d08818649c638723dec7d3a
6e4b669 Optimized legend alignment alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/6e4b669766c7a447af16d9c0647569113b26b3e6
9b63123 Fixed failing test alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/9b63123f42bcd8919f812ab90640922e2ba05dfc
a804d83 Added label legend test alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/a804d83d9a46f4149f5533031c98612cad668ec2
0beaabd Some docstring fixes alexhartl Dec 22, 2019 https://github.com/matplotlib/matplotlib/pull/16005/commits/0beaabd404ca5bb5af73db52c03755e57c231ea6
70eb85d Moved functionality to subclass of Text alexhartl Jan 23, 2020 https://github.com/matplotlib/matplotlib/pull/16005/commits/70eb85d1eb090f4d61839470ff840ca188316852
dded358 Fixed failing test alexhartl Jan 23, 2020 https://github.com/matplotlib/matplotlib/pull/16005/commits/dded358b89e04b519f741cd9f59378f97df71944
Clear filters https://github.com/matplotlib/matplotlib/pull/16005/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/16005/files
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/16005/files
axes_api.rst https://github.com/matplotlib/matplotlib/pull/16005/files#diff-a287c3691b3efc4a40b816ce73137371ef6a7d490a648ae792b33197849d5ed9
2019-12-22-axis-label-legend.rst https://github.com/matplotlib/matplotlib/pull/16005/files#diff-674e73d3faeae0d647c7cd95f7741f9a877c7a0025e0ed32a38ebfdf6bbec228
_axes.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
axis.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-04227e6d4900298b309bddab2e848da8cc638da2913c64b5dcf0d800ba2a0c16
legend.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-e7a00bb4a353fa623c1d0c1de5c6ca602b7ab38e8906d4842640983133b9196a
legend_handler.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-bf161cdba7927d70f74280599f230645a986d47e57821a961a2dd768dc403a05
pyplot.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-d1edb5a528e7423f485b24cac2083d05d365a19352f886bf15af3ef442bdda92
label_legend.png https://github.com/matplotlib/matplotlib/pull/16005/files#diff-0857566b7a8d47ebcae97c75ffaf6cd0bd10912d398a0cc88dc9dd5c1ade2b6f
test_axes.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-ef5144bd27a700deb760ef56ccf51dc6fcfe86723f9ffa84df7f024985bf3ee7
text.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-2889b798b7f9a072d882bef4f0fc033db63538a9317df59fa963e9a82401bf40
boilerplate.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-09c5477c0e5f014a9c78894516d07d106d6a19413983879eeb66730e1767c819
legend_guide.py https://github.com/matplotlib/matplotlib/pull/16005/files#diff-24a5659965239c4fa629923184dbd7a2d8ffdc58647f74f78bc21b225e1cbea7
doc/api/axes_api.rsthttps://github.com/matplotlib/matplotlib/pull/16005/files#diff-a287c3691b3efc4a40b816ce73137371ef6a7d490a648ae792b33197849d5ed9
View file https://github.com/matplotlib/matplotlib/blob/dded358b89e04b519f741cd9f59378f97df71944/doc/api/axes_api.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/16005/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-a287c3691b3efc4a40b816ce73137371ef6a7d490a648ae792b33197849d5ed9
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-a287c3691b3efc4a40b816ce73137371ef6a7d490a648ae792b33197849d5ed9
doc/users/next_whats_new/2019-12-22-axis-label-legend.rsthttps://github.com/matplotlib/matplotlib/pull/16005/files#diff-674e73d3faeae0d647c7cd95f7741f9a877c7a0025e0ed32a38ebfdf6bbec228
View file https://github.com/matplotlib/matplotlib/blob/dded358b89e04b519f741cd9f59378f97df71944/doc/users/next_whats_new/2019-12-22-axis-label-legend.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/16005/{{ revealButtonHref }}
lib/matplotlib/axes/_axes.pyhttps://github.com/matplotlib/matplotlib/pull/16005/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
View file https://github.com/matplotlib/matplotlib/blob/dded358b89e04b519f741cd9f59378f97df71944/lib/matplotlib/axes/_axes.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/16005/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-608e2a1bf3d32fd631b0763599a3334d59822c11cb4fec1fa7398c9714592900
lib/matplotlib/axis.pyhttps://github.com/matplotlib/matplotlib/pull/16005/files#diff-04227e6d4900298b309bddab2e848da8cc638da2913c64b5dcf0d800ba2a0c16
View file https://github.com/matplotlib/matplotlib/blob/dded358b89e04b519f741cd9f59378f97df71944/lib/matplotlib/axis.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/16005/{{ revealButtonHref }}
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-04227e6d4900298b309bddab2e848da8cc638da2913c64b5dcf0d800ba2a0c16
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-04227e6d4900298b309bddab2e848da8cc638da2913c64b5dcf0d800ba2a0c16
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-04227e6d4900298b309bddab2e848da8cc638da2913c64b5dcf0d800ba2a0c16
https://github.com/matplotlib/matplotlib/pull/16005/files#diff-04227e6d4900298b309bddab2e848da8cc638da2913c64b5dcf0d800ba2a0c16
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/16005/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.