René's URL Explorer Experiment


Title: [Bug]: Initial save ignores text in a figure with constrained layout · Issue #31147 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: Initial save ignores text in a figure with constrained layout · Issue #31147 · matplotlib/matplotlib

X Title: [Bug]: Initial save ignores text in a figure with constrained layout · Issue #31147 · matplotlib/matplotlib

Description: Bug summary The text is added below the axes by calling ax.text(0.0, -0.5, f"My Text") in a figure with constrained layout, but the initial save does not contain the text. Code for reproduction import matplotlib.pyplot as plt fig = plt.f...

Open Graph Description: Bug summary The text is added below the axes by calling ax.text(0.0, -0.5, f"My Text") in a figure with constrained layout, but the initial save does not contain the text. Code for reproduction imp...

X Description: Bug summary The text is added below the axes by calling ax.text(0.0, -0.5, f"My Text") in a figure with constrained layout, but the initial save does not contain the text. Code for reprod...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31147

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Initial save ignores text in a figure with constrained layout","articleBody":"### Bug summary\n\nThe text is added below the axes by calling ax.text(0.0, -0.5, f\"My Text\") in a figure with constrained layout, but the initial save does not contain the text. \n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nfig = plt.figure(layout='constrained')\nax = fig.add_subplot()\nax.text(0.0, -0.5, f\"My Text\")\n    \nplt.savefig('save1.png')\nplt.savefig('save2.png')\n```\n\n### Actual outcome\n\n### save1.png\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c5915ef3-898e-4a53-9918-f96853a9d069\" />\n\n### save2.png\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b8626e43-db92-441c-b7da-57afcc6f7f29\" />\n\n### Expected outcome\n\nsave1.png and save2.png should be identical and both contain \"My Text\".\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.10.8\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/smith2936","@type":"Person","name":"smith2936"},"datePublished":"2026-02-13T06:20:25Z","url":"https://github.com/matplotlib/matplotlib/issues/31147"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:678634bc-762a-1efc-6c75-28c09aa12853
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D0E:83BF7:11C1372:1771F14:6B065381
html-safe-nonce867a9abc5b2c96d459512a7d290532d74e6ec6654e86c4ed2e98419651e02bf1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDBFOjgzQkY3OjExQzEzNzI6MTc3MUYxNDo2QjA2NTM4MSIsInZpc2l0b3JfaWQiOiI2OTQ5NDIwMzIxMjUwNjI4NDgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5c86dab36d3e4b0a29ef01ef49fe63fff30f5bddc58f91469629ae894ae94001
hovercard-subject-tagissue:3935576331
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/31147/issue_layout
twitter:imagehttps://opengraph.githubassets.com/93d11e87039b1c09d6a65fbe83b5e3f8471a27f9d4f4a0a3c7d4560bed6a86bf/matplotlib/matplotlib/issues/31147
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/93d11e87039b1c09d6a65fbe83b5e3f8471a27f9d4f4a0a3c7d4560bed6a86bf/matplotlib/matplotlib/issues/31147
og:image:altBug summary The text is added below the axes by calling ax.text(0.0, -0.5, f"My Text") in a figure with constrained layout, but the initial save does not contain the text. Code for reproduction imp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesmith2936
hostnamegithub.com
expected-hostnamegithub.com
None6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297
turbo-cache-controlno-preview
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
release7f0aa75f4141d440c6110dc31af7ea7797abb6c4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/31147#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F31147
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%2Fissues%2F31147
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/31147
Reloadhttps://github.com/matplotlib/matplotlib/issues/31147
Reloadhttps://github.com/matplotlib/matplotlib/issues/31147
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests430 (430)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
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/31147
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/31147
#32646https://github.com/matplotlib/matplotlib/pull/32646
[Bug]: Initial save ignores text in a figure with constrained layouthttps://github.com/matplotlib/matplotlib/issues/31147#top
#32646https://github.com/matplotlib/matplotlib/pull/32646
Documentationhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Documentation%22
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
topic: geometry managerhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20geometry%20manager%22
https://github.com/smith2936
smith2936https://github.com/smith2936
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#issue-3935576331
https://private-user-images.githubusercontent.com/181318496/549269563-c5915ef3-898e-4a53-9918-f96853a9d069.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29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MU0E1M1BRSzRaQSUyRjIwMjYxMTI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyNVQwMzE4MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNGE2YjJhMDNkYjRjM2U3ODBjZmE3ZWNkMGVkYzk0MWRlNzNlMzYzM2NmODRlMzAxMWRkMjZmNTZjNmNkNmIyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.nzeKC4rXG1rZ2xLWS4EbM3MUrBaHF9TbIwMmeWoXjWA
smith2936https://github.com/smith2936
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#event-22756824755
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#issuecomment-3896235011
timhoffmhttps://github.com/timhoffm
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#event-22761952987
https://github.com/SAI-HARISH2007
SAI-HARISH2007https://github.com/SAI-HARISH2007
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#issuecomment-3896676994
SAI-HARISH2007https://github.com/SAI-HARISH2007
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#event-22764898543
FIX: include text outside axes in constrained_layout (matplotlib#31147)https://github.com/SAI-HARISH2007/matplotlib/commit/f84d80986570c3da255e4e3fa7120dd1852241fb
matplotlib#31147https://github.com/matplotlib/matplotlib/issues/31147
f84d809https://github.com/SAI-HARISH2007/matplotlib/commit/f84d80986570c3da255e4e3fa7120dd1852241fb
rcomerhttps://github.com/rcomer
topic: geometry managerhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20geometry%20manager%22
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#event-22766154530
https://github.com/jklymak
jklymakhttps://github.com/jklymak
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#issuecomment-3898098889
https://matplotlib.org/stable/users/explain/axes/constrainedlayout_guide.html#other-caveatshttps://matplotlib.org/stable/users/explain/axes/constrainedlayout_guide.html#other-caveats
jklymakhttps://github.com/jklymak
Documentationhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Documentation%22
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#event-22771270980
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
on Feb 13, 2026https://github.com/matplotlib/matplotlib/issues/31147#issuecomment-3898713974
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
on Feb 14, 2026https://github.com/matplotlib/matplotlib/issues/31147#issuecomment-3901211253
#30718https://github.com/matplotlib/matplotlib/issues/30718
#8270https://github.com/matplotlib/matplotlib/issues/8270
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/31147
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/31147
Documentationhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Documentation%22
status: confirmed bughttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20confirmed%20bug%22
topic: geometry managerhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20geometry%20manager%22
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.