René's URL Explorer Experiment


Title: [Bug]: Thick line just outside the figure edge disappears although part of it is inside the axes · Issue #32642 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: Thick line just outside the figure edge disappears although part of it is inside the axes · Issue #32642 · matplotlib/matplotlib

X Title: [Bug]: Thick line just outside the figure edge disappears although part of it is inside the axes · Issue #32642 · matplotlib/matplotlib

Description: Bug summary A thick unfilled line whose centre lies just outside the figure is not drawn at all with the Agg backend, even though almost half of its width falls inside the axes. If the same axes have some empty space around them in the f...

Open Graph Description: Bug summary A thick unfilled line whose centre lies just outside the figure is not drawn at all with the Agg backend, even though almost half of its width falls inside the axes. If the same axes ha...

X Description: Bug summary A thick unfilled line whose centre lies just outside the figure is not drawn at all with the Agg backend, even though almost half of its width falls inside the axes. If the same axes ha...

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

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]: Thick line just outside the figure edge disappears although part of it is inside the axes","articleBody":"### Bug summary\n\nA thick unfilled line whose centre lies just outside the figure is not drawn at all with the Agg backend, even though almost half of its width falls inside the axes. If the same axes have some empty space around them in the figure, the visible half of the line is drawn as expected.\n\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n\ndef draw(margin):\n    # The same 400x300 px axes, placed in a figure with `margin` px of space around it.\n    W, H = 400 + 2 * margin, 300 + 2 * margin\n    fig = plt.figure(figsize=(W / 100, H / 100), dpi=100)\n    ax = fig.add_axes([margin / W, margin / H, 400 / W, 300 / H])\n    ax.set_axis_off()\n    ax.set(xlim=(0, 1), ylim=(0, 1))\n    # A thick line slightly below the bottom of the axes; its upper half lies inside the axes.\n    ax.plot([0.1, 0.9], [-0.004, -0.004], lw=30, color=\"k\")\n    fig.canvas.draw()\n    img = np.asarray(fig.canvas.buffer_rgba())[margin:margin + 300, margin:margin + 400]\n    return (img[..., :3].min(-1) \u003c 128).sum()\n\n\nprint(\"dark pixels inside the axes, no margin:  \", draw(0))\nprint(\"dark pixels inside the axes, 40 px margin:\", draw(40))\n```\n\n### Actual outcome\n\n```\ndark pixels inside the axes, no margin:   0\ndark pixels inside the axes, 40 px margin: 7240\n```\n\nWith no margin, the line is missing completely.\n\n\u003cimg width=\"920\" height=\"380\" alt=\"before_after\" src=\"https://github.com/user-attachments/assets/af611d5e-655b-42fa-971e-c4587987b53f\" />\n\n### Expected outcome\n\nThe same image in both cases: the upper half of the line visible along the bottom of the axes.\n\n\n### Additional information\n\nBefore stroking, Agg clips unfilled paths to the canvas grown by 1 px (`PathClipper`, rectangle `(-1, -1, width + 1, height + 1)` in `src/path_converters.h`). The rectangle does not account for the line width, so a line whose centre is more than 1 px outside the canvas is removed, even when its stroke reaches into the image.\n\nGrowing the rectangle by half the line width would cover round and butt caps and joins. Projecting caps and miter joins reach further, and the miter case relates to #9830. I'm not sure which approach you'd prefer.\n\nThe same output with the released 3.10.8.\n\n### Operating system\n\nLinux (Ubuntu 22.04)\n\n### Matplotlib Version\n\n3.12.0.dev943+gc21a3923e\n\n### Matplotlib Backend\n\nagg\n\n### Python version\n\n3.14.10\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/yqtian-se","@type":"Person","name":"yqtian-se"},"datePublished":"2026-11-22T12:37:01Z","url":"https://github.com/matplotlib/matplotlib/issues/32642"}

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:785127fe-0309-1d2e-56c6-6a504bff0e97
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC15E:23E430:10540B9:15A2EC7:6B064EEA
html-safe-noncec6f46f671df321d4d154f5a986ae1434dcab802385efe8bdeb8c8fe934d11d7f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTVFOjIzRTQzMDoxMDU0MEI5OjE1QTJFQzc6NkIwNjRFRUEiLCJ2aXNpdG9yX2lkIjoiNjQ4ODAwNzU0MzY0NTE2MzI0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbc26388b37b11408159735524b79d0da85a5ec7ef469a96c83a4ce9cc2c48707
hovercard-subject-tagissue:6542458893
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/32642/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0bed3d033280f07e9d428e073ea2e0872794ff41831ac8858df6fb906cddfec8/matplotlib/matplotlib/issues/32642
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0bed3d033280f07e9d428e073ea2e0872794ff41831ac8858df6fb906cddfec8/matplotlib/matplotlib/issues/32642
og:image:altBug summary A thick unfilled line whose centre lies just outside the figure is not drawn at all with the Agg backend, even though almost half of its width falls inside the axes. If the same axes ha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyqtian-se
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
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
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/32642#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32642
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%2F32642
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/32642
Reloadhttps://github.com/matplotlib/matplotlib/issues/32642
Reloadhttps://github.com/matplotlib/matplotlib/issues/32642
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/32642
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32642
[Bug]: Thick line just outside the figure edge disappears although part of it is inside the axeshttps://github.com/matplotlib/matplotlib/issues/32642#top
https://github.com/yqtian-se
yqtian-sehttps://github.com/yqtian-se
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32642#issue-6542458893
https://private-user-images.githubusercontent.com/41743566/715093877-af611d5e-655b-42fa-971e-c4587987b53f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MzEsIm5iZiI6MTc5NTU3NTUzMSwicGF0aCI6Ii80MTc0MzU2Ni83MTUwOTM4NzctYWY2MTFkNWUtNjU1Yi00MmZhLTk3MWUtYzQ1ODc5ODdiNTNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAyNTg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxMDRlMTY0ZmFhNTNiOTUxMzdkY2NmNWM4YjM4YjdhMzdiMmRlMGVlYTBmZTVmMjY0OTg4NDdkZGRmODY3YjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.6iul5bI-_XJPLzr7NsCgOHlFDTsliiuO3yUwWvvbMD0
#9830https://github.com/matplotlib/matplotlib/issues/9830
yqtian-sehttps://github.com/yqtian-se
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32642#event-36923519746
https://github.com/rcomer
rcomerhttps://github.com/rcomer
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7079787083
rcomerhttps://github.com/rcomer
status: needs clarificationhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20clarification%22
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32642#event-36925887683
https://github.com/yqtian-se
yqtian-sehttps://github.com/yqtian-se
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7086826130
https://private-user-images.githubusercontent.com/41743566/715316115-798b09f2-f5d5-4989-a07d-58c88ec53d69.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MzEsIm5iZiI6MTc5NTU3NTUzMSwicGF0aCI6Ii80MTc0MzU2Ni83MTUzMTYxMTUtNzk4YjA5ZjItZjVkNS00OTg5LWEwN2QtNThjODhlYzUzZDY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAyNTg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA5ZTFlM2MxNTgyNzZhNzE2MjdjZmNhZDdmNmEwMTdmMmE5YzNkMGUwNDYxMjU4NTM2NzQxMjMxMzlmMzY0OTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.WvCnmwoHooOm4_TucxiHfh-Ya2LhZQIn4HImqF6Q9fM
https://github.com/jklymak
jklymakhttps://github.com/jklymak
on Nov 23, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7090361591
https://github.com/yqtian-se
yqtian-sehttps://github.com/yqtian-se
on Nov 23, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7091398345
https://private-user-images.githubusercontent.com/41743566/715460233-4332e005-1200-4df0-88d2-175562630e0a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MzEsIm5iZiI6MTc5NTU3NTUzMSwicGF0aCI6Ii80MTc0MzU2Ni83MTU0NjAyMzMtNDMzMmUwMDUtMTIwMC00ZGYwLTg4ZDItMTc1NTYyNjMwZTBhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAyNTg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4NDExYzUwYjFhYzU5Y2ZkODhlM2FhYTc0NzNhZTIyYWI1MzQ3NTg3OGFmOGYzOWI1ODYyYzE2ODIwMDZkMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.2KQkCERvMfujjnd9lHy0Akqwr471qfs9Eg7uRLu4SGA
https://github.com/jklymak
jklymakhttps://github.com/jklymak
on Nov 23, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7111413877
rcomerhttps://github.com/rcomer
status: needs clarificationhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20needs%20clarification%22
on Nov 23, 2026https://github.com/matplotlib/matplotlib/issues/32642#event-37048859672
https://github.com/yqtian-se
yqtian-sehttps://github.com/yqtian-se
on Nov 24, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7119832146
@jklymakhttps://github.com/jklymak
#5023https://github.com/matplotlib/matplotlib/pull/5023
#5016https://github.com/matplotlib/matplotlib/issues/5016
https://private-user-images.githubusercontent.com/41743566/716707771-5ce1cf11-e210-44fb-842b-a5e368d801ca.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MzEsIm5iZiI6MTc5NTU3NTUzMSwicGF0aCI6Ii80MTc0MzU2Ni83MTY3MDc3NzEtNWNlMWNmMTEtZTIxMC00NGZiLTg0MmItYTVlMzY4ZDgwMWNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAyNTg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0MjlhN2YxZTcyZTUxM2M5M2VjM2JhNGYzYTUxYmQ2M2Q1ZGIzNGY1NDMyMjczMzc1NDVjNTMxMGU2NzA3MmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.m1bH48QlcyPkCsCvuON_Uutr3iUh4_aQkRmxhpi5I74
https://github.com/jklymak
jklymakhttps://github.com/jklymak
on Nov 24, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7122609069
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
on Nov 24, 2026https://github.com/matplotlib/matplotlib/issues/32642#issuecomment-7127068224
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/32642
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32642
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.