René's URL Explorer Experiment


Title: text is not clipped by clip_path · Issue #8270 · matplotlib/matplotlib · GitHub

Open Graph Title: text is not clipped by clip_path · Issue #8270 · matplotlib/matplotlib

X Title: text is not clipped by clip_path · Issue #8270 · matplotlib/matplotlib

Description: Bug report Bug summary I expect that a matplotlib.text.Text object should disappear when clipped by setting clip_path=some_path. In practice, the text is still here. Code for reproduction import numpy as np import matplotlib as mpl from ...

Open Graph Description: Bug report Bug summary I expect that a matplotlib.text.Text object should disappear when clipped by setting clip_path=some_path. In practice, the text is still here. Code for reproduction import nu...

X Description: Bug report Bug summary I expect that a matplotlib.text.Text object should disappear when clipped by setting clip_path=some_path. In practice, the text is still here. Code for reproduction import nu...

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

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":"text is not clipped by clip_path","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nI expect that a matplotlib.text.Text object should disappear when clipped by setting `clip_path=some_path`. In practice, the text is still here.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib as mpl\r\nfrom matplotlib import pyplot as plt\r\n\r\nplt.figure(figsize=(8,8))\r\nax = plt.gca()\r\n\r\npoly = mpl.patches.Polygon([[1,0], [0,1], [-1,0], [0,-1]], \r\n                           facecolor=\"#ddffdd\", edgecolor=\"#00ff00\", linewidth=2, alpha=0.5)\r\n\r\nax.add_patch(poly)\r\n\r\n# should not be displayed ...\r\ntxt_outside = mpl.text.Text(0.75,0.75,\"outside :(\", clip_on=True, clip_path=poly)\r\nax.add_artist(txt_outside)\r\n\r\n# should be (and is) displayed\r\ntxt_inside = mpl.text.Text(0.,0.,\"inside :)\", clip_on=True, clip_path=poly)\r\nax.add_artist(txt_inside)\r\n\r\n# works perfectly\r\nscatter = plt.scatter(*np.transpose([[0.1,0.1],[0.7,0.7]]), zorder=5, clip_path=poly)\r\n\r\nax.set_xlim(-1,1)\r\nax.set_ylim(-1,1)\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/13440379/23825111/ee839206-0683-11e7-9b39-9d335eebe679.png)\r\n\r\n**Expected outcome**\r\n\r\nI would expect the text `outside :(` not to appear on the image.\r\n\r\n**Matplotlib version**\r\n\r\nThis happens with matplotlib 2.0.0 with python 3.6.0 (installed with anaconda on linux). It also happens with matplotlib 1.5.3 with python 3.5.2 (same setup).","author":{"url":"https://github.com/fruchart","@type":"Person","name":"fruchart"},"datePublished":"2017-03-11T17:04:21Z","url":"https://github.com/matplotlib/matplotlib/issues/8270"}

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:ba0d7d2e-42a3-8beb-8e84-e896c31f8d7f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3F8:261BEA:11826E3:176B7CA:6B065C9E
html-safe-nonce2f0f45e198a55f4c29238603ecbf8e223f743fd1538bf5631188847ce4398c65
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Y4OjI2MUJFQToxMTgyNkUzOjE3NkI3Q0E6NkIwNjVDOUUiLCJ2aXNpdG9yX2lkIjoiODY4NDcyNjgwNjk0MDkwMDUxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac43600a48fd721373570f6cd8c7ef3f769822aa57b81222aa996e60a3e1a817de
hovercard-subject-tagissue:213541855
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/8270/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e440c632c078d0848051597451406abf21746a773f2d876a60bd1d71fd54ae07/matplotlib/matplotlib/issues/8270
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e440c632c078d0848051597451406abf21746a773f2d876a60bd1d71fd54ae07/matplotlib/matplotlib/issues/8270
og:image:altBug report Bug summary I expect that a matplotlib.text.Text object should disappear when clipped by setting clip_path=some_path. In practice, the text is still here. Code for reproduction import nu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefruchart
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/8270#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F8270
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%2F8270
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/8270
Reloadhttps://github.com/matplotlib/matplotlib/issues/8270
Reloadhttps://github.com/matplotlib/matplotlib/issues/8270
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/8270
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/8270
text is not clipped by clip_pathhttps://github.com/matplotlib/matplotlib/issues/8270#top
keephttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
topic: texthttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20text%22
https://github.com/fruchart
frucharthttps://github.com/fruchart
on Mar 11, 2017https://github.com/matplotlib/matplotlib/issues/8270#issue-213541855
https://cloud.githubusercontent.com/assets/13440379/23825111/ee839206-0683-11e7-9b39-9d335eebe679.png
dstansbyhttps://github.com/dstansby
topic: texthttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20text%22
on Mar 19, 2017https://github.com/matplotlib/matplotlib/issues/8270#event-1005819032
https://github.com/anntzer
anntzerhttps://github.com/anntzer
on Jul 28, 2017https://github.com/matplotlib/matplotlib/issues/8270#issuecomment-318578393
https://github.com/anntzer
anntzerhttps://github.com/anntzer
on May 13, 2020https://github.com/matplotlib/matplotlib/issues/8270#issuecomment-627840736
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 9, 2023https://github.com/matplotlib/matplotlib/issues/8270#issuecomment-1501017878
github-actionshttps://github.com/apps/github-actions
status: inactivehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20inactive%22
on Apr 9, 2023https://github.com/matplotlib/matplotlib/issues/8270#event-8958388426
https://github.com/anntzer
anntzerhttps://github.com/anntzer
on Apr 9, 2023https://github.com/matplotlib/matplotlib/issues/8270#issuecomment-1501169631
#8270 (comment)https://github.com/matplotlib/matplotlib/issues/8270#issuecomment-627840736
oscargushttps://github.com/oscargus
keephttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
status: inactivehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20inactive%22
on Apr 9, 2023https://github.com/matplotlib/matplotlib/issues/8270#event-8959388620
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/8270
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/8270
keephttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
topic: texthttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20text%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.