René's URL Explorer Experiment


Title: [Bug]: Clip box property of ax.text(...) has no effect · Issue #30718 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: Clip box property of ax.text(...) has no effect · Issue #30718 · matplotlib/matplotlib

X Title: [Bug]: Clip box property of ax.text(...) has no effect · Issue #30718 · matplotlib/matplotlib

Description: Bug summary Setting the clip_box property of text generated with ax.text(...) has no effect, regardless of whether it is set directly during generation with the clip_box parameter or afterwards with the setter function text.set_clip_box(...

Open Graph Description: Bug summary Setting the clip_box property of text generated with ax.text(...) has no effect, regardless of whether it is set directly during generation with the clip_box parameter or afterwards wit...

X Description: Bug summary Setting the clip_box property of text generated with ax.text(...) has no effect, regardless of whether it is set directly during generation with the clip_box parameter or afterwards wit...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Clip box property of ax.text(...) has no effect","articleBody":"### Bug summary\n\nSetting the `clip_box` property of text generated with `ax.text(...)` has no effect, regardless of whether it is set directly during generation with the `clip_box` parameter or afterwards with the setter function `text.set_clip_box(...)`.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\nfrom matplotlib.transforms import Bbox, TransformedBbox\n\n# Create data for the plot\nx = range(10)\ny = range(10)\n\n# Create the plot\nfig, ax = plt.subplots()\n\n# Create a bounding box\nbbox = Bbox([[5, 2], [7, 8]])\n# Transform the bounding box to the coordinate system of the data\ntbbox = TransformedBbox(bbox, ax.transData)\n\n# Draw the bounding box on the plot for better understanding\nrect = plt.Rectangle((bbox.xmin, bbox.ymin), bbox.width, bbox.height, fill=False, edgecolor='r', linewidth=2)\nax.add_patch(rect)\n\n# Plot a line and a text\nline, = ax.plot(x, y, color='blue')\ntext = ax.text(5, 5, \"Lorem ipsum dolor sit amet.\")\n\n# Apply the bounding box to the line and text\nline.set_clip_box(tbbox)\ntext.set_clip_box(tbbox)\n\n# Show the plot\nplt.show()\n```\n\n### Actual outcome\n\nWhile the line drawn with ax.plot(...) is correctly clipped, the text is not clipped:\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2279fd06-7fde-4c99-8b5a-bf0e686a2c46\" />\n\n### Expected outcome\n\nThe text should be clipped in the same way as the line:\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/631e1eaa-9121-4058-8679-c17b9e1e3f7a\" />\n\n### Additional information\n\nThe same problem occurs if you use `text = ax.text(5, 5, \"Lorem ipsum dolor sit amet.\", clip_box=tbbox)` in line 22 instead of line 26.\n\n### Operating system\n\nWindows 11\n\n### Matplotlib Version\n\n3.10.7\n\n### Matplotlib Backend\n\nmodule://backend_interagg\n\n### Python version\n\n3.14.0\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/leofels","@type":"Person","name":"leofels"},"datePublished":"2025-11-02T18:52:02Z","url":"https://github.com/matplotlib/matplotlib/issues/30718"}

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:e132600b-969a-8eb5-ecdc-d2ba85aa905c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDB2:E76E0:1193AC0:177667C:6B065CA3
html-safe-noncef0693c6bf500748c9871fbe80648f3ec714e459a9346f497e2f51defd18403d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREIyOkU3NkUwOjExOTNBQzA6MTc3NjY3Qzo2QjA2NUNBMyIsInZpc2l0b3JfaWQiOiIyMzg5NTQ1NDAzODQ3OTU3NjY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac09467b88cb32e8629b23823e30e819a1d042e33d2d944920ac2d08c5841709ea
hovercard-subject-tagissue:3579832847
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/30718/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3d974b5d26c492e3d6ac547e914ed15ca96e65a8704ee028dfebf1dd6ea12880/matplotlib/matplotlib/issues/30718
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3d974b5d26c492e3d6ac547e914ed15ca96e65a8704ee028dfebf1dd6ea12880/matplotlib/matplotlib/issues/30718
og:image:altBug summary Setting the clip_box property of text generated with ax.text(...) has no effect, regardless of whether it is set directly during generation with the clip_box parameter or afterwards wit...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleofels
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/30718#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F30718
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%2F30718
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/30718
Reloadhttps://github.com/matplotlib/matplotlib/issues/30718
Reloadhttps://github.com/matplotlib/matplotlib/issues/30718
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/30718
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/30718
[Bug]: Clip box property of ax.text(...) has no effecthttps://github.com/matplotlib/matplotlib/issues/30718#top
https://github.com/leofels
leofelshttps://github.com/leofels
on Nov 2, 2025https://github.com/matplotlib/matplotlib/issues/30718#issue-3579832847
https://private-user-images.githubusercontent.com/79929153/508736118-2279fd06-7fde-4c99-8b5a-bf0e686a2c46.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzkzNDQsIm5iZiI6MTc5NTU3OTA0NCwicGF0aCI6Ii83OTkyOTE1My81MDg3MzYxMTgtMjI3OWZkMDYtN2ZkZS00Yzk5LThiNWEtYmYwZTY4NmEyYzQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAzNTcyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzMDdmM2Q3MzAyYmU1Y2Q2MzBhOTkzYTAyMmQxN2RkODdlYTc5ZTQxM2RjYmMxYWY1MmE2MzBiNjNmNDdkZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.VSOi3JBOYZ_uVRQCW8kg5ZAaz9TFPeB2D7pe5-oOU2o
https://private-user-images.githubusercontent.com/79929153/508736127-631e1eaa-9121-4058-8679-c17b9e1e3f7a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzkzNDQsIm5iZiI6MTc5NTU3OTA0NCwicGF0aCI6Ii83OTkyOTE1My81MDg3MzYxMjctNjMxZTFlYWEtOTEyMS00MDU4LTg2NzktYzE3YjllMWUzZjdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAzNTcyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiMGFjMzFlMzFmZDU4YjlkYWRhNmQzMWNiMzRmZTM0YWZjYWFiZGZmYmQ0MWJiOGI1NjQyNjRkOTcyYjMyNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.25At_gpugsKI88cuJsR6lCX9cOey3MvW8PZuMq9aoHQ
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Nov 2, 2025https://github.com/matplotlib/matplotlib/issues/30718#issuecomment-3478405114
https://github.com/rcomer
rcomerhttps://github.com/rcomer
on Nov 3, 2025https://github.com/matplotlib/matplotlib/issues/30718#issuecomment-3479550002
https://private-user-images.githubusercontent.com/10599679/508867467-fc6bd436-4624-45e5-b73e-851cf6265aff.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzkzNDQsIm5iZiI6MTc5NTU3OTA0NCwicGF0aCI6Ii8xMDU5OTY3OS81MDg4Njc0NjctZmM2YmQ0MzYtNDYyNC00NWU1LWI3M2UtODUxY2Y2MjY1YWZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAzNTcyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFlMDI2OTEwZmQwN2FmYThkY2RiZmEwZTIyNDc1NTA1OTdmM2E3NmQ4Y2E1ZmYzZjhhMGY4NGY1ZWIyM2I1NzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.nky4s5d1ru-JyGgUMvkPul0Oawrhaa0qV-UyNQro-kg
#28717https://github.com/matplotlib/matplotlib/issues/28717
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Nov 4, 2025https://github.com/matplotlib/matplotlib/issues/30718#issuecomment-3486398627
@rcomerhttps://github.com/rcomer
https://github.com/leofels
leofelshttps://github.com/leofels
on Nov 4, 2025https://github.com/matplotlib/matplotlib/issues/30718#issuecomment-3486547041
@tacaswellhttps://github.com/tacaswell
@rcomerhttps://github.com/rcomer
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/30718
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/30718
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.