René's URL Explorer Experiment


Title: [Bug]: agg.path.chunksize leaves gaps in lines at chunk boundaries · Issue #32641 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: agg.path.chunksize leaves gaps in lines at chunk boundaries · Issue #32641 · matplotlib/matplotlib

X Title: [Bug]: agg.path.chunksize leaves gaps in lines at chunk boundaries · Issue #32641 · matplotlib/matplotlib

Description: Bug summary With agg.path.chunksize set, a long line is drawn with a gap at every chunk boundary: two segments are missing each time. The docs say the line is split into several lines of at most chunksize vertices, not that points are dr...

Open Graph Description: Bug summary With agg.path.chunksize set, a long line is drawn with a gap at every chunk boundary: two segments are missing each time. The docs say the line is split into several lines of at most ch...

X Description: Bug summary With agg.path.chunksize set, a long line is drawn with a gap at every chunk boundary: two segments are missing each time. The docs say the line is split into several lines of at most ch...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: agg.path.chunksize leaves gaps in lines at chunk boundaries","articleBody":"### Bug summary\n\nWith `agg.path.chunksize` set, a long line is drawn with a gap at every chunk boundary: two segments are missing each time. The docs say the line is split into several lines of at most `chunksize` vertices, not that points are dropped. The rc docs warn about \"minor artifacts\", but I would not expect whole segments to go missing.\n\n### Code for reproduction\n\n```Python\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n\ndef render(chunksize):\n    with mpl.rc_context({\"agg.path.chunksize\": chunksize}):\n        fig, ax = plt.subplots()\n        x = np.arange(200)\n        ax.plot(x, x % 2, lw=1, solid_joinstyle=\"round\", solid_capstyle=\"round\",\n                antialiased=False, color=\"k\")\n        ax.set_axis_off()\n        fig.canvas.draw()\n        img = np.asarray(fig.canvas.buffer_rgba()).copy()\n        fig.savefig(f\"chunksize_{chunksize}.png\")\n        plt.close(fig)\n    return img\n\n\nprint(\"pixels differing:\", int((render(0) != render(150)).any(-1).sum()))\n```\n\n### Actual outcome\n\n`pixels differing: 961`. `chunksize_150.png` has a visible gap in the zigzag where the line is split.\n\n\u003cimg width=\"640\" height=\"480\" alt=\"main_chunksize_150\" src=\"https://github.com/user-attachments/assets/882ae171-1f5b-4935-bb1f-73739c6759ad\" />\n\n### Expected outcome\n\nNo gaps. With round caps and joins and antialiasing off, the chunked line should look the same as \n\n\u003cimg width=\"640\" height=\"480\" alt=\"fixed_chunksize_150\" src=\"https://github.com/user-attachments/assets/71f30c12-ce8a-4503-a2de-8a71d9761e45\" />\n\nthe unchunked one (0 pixels differing).\n\n### Additional information\n\nIn `RendererAgg.draw_path` the chunk ends are computed as `i1[:-1] = i0[1:] - 1` and used as an exclusive slice end. So vertex `i0[k+1] - 1` is in no chunk, and the segments on both sides of it are not drawn. Letting consecutive chunks share their boundary vertex fixes it; I can open a PR.\n\nThe same output with the released 3.10.8.\n\n### Operating system\n\nLinux (Ubuntu on WSL2)\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:27:07Z","url":"https://github.com/matplotlib/matplotlib/issues/32641"}

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:48a81403-08e8-bf8c-ad47-f846cac71812
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD82E:17CA31:E0BF86:12D9F06:6B064EDC
html-safe-nonced6e528ed1d5c9f8a130e342070338ee77f9056bb9385ac23801eff9bd2da30a5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODJFOjE3Q0EzMTpFMEJGODY6MTJEOUYwNjo2QjA2NEVEQyIsInZpc2l0b3JfaWQiOiI4MTE5MDk3MjM2MzA4NTEyNDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfaa5e35b171373207b8326117f7d62c002ea9def8ff18a354822aee174623a4c
hovercard-subject-tagissue:6542359614
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/32641/issue_layout
twitter:imagehttps://opengraph.githubassets.com/60c53bae340f81a8dccf9e6687429a5cc9ee79a88572566c2783c4ca9c11bfcb/matplotlib/matplotlib/issues/32641
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/60c53bae340f81a8dccf9e6687429a5cc9ee79a88572566c2783c4ca9c11bfcb/matplotlib/matplotlib/issues/32641
og:image:altBug summary With agg.path.chunksize set, a long line is drawn with a gap at every chunk boundary: two segments are missing each time. The docs say the line is split into several lines of at most ch...
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/32641#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32641
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%2F32641
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/32641
Reloadhttps://github.com/matplotlib/matplotlib/issues/32641
Reloadhttps://github.com/matplotlib/matplotlib/issues/32641
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/32641
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32641
#32648https://github.com/matplotlib/matplotlib/pull/32648
[Bug]: agg.path.chunksize leaves gaps in lines at chunk boundarieshttps://github.com/matplotlib/matplotlib/issues/32641#top
#32648https://github.com/matplotlib/matplotlib/pull/32648
backend: agghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20agg%22
first-contributionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22first-contribution%22
https://github.com/yqtian-se
yqtian-sehttps://github.com/yqtian-se
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32641#issue-6542359614
https://private-user-images.githubusercontent.com/41743566/715090877-882ae171-1f5b-4935-bb1f-73739c6759ad.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MTYsIm5iZiI6MTc5NTU3NTUxNiwicGF0aCI6Ii80MTc0MzU2Ni83MTUwOTA4NzctODgyYWUxNzEtMWY1Yi00OTM1LWJiMWYtNzM3MzljNjc1OWFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAyNTgzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2NDhjM2EzZDJmNThjMWMzYTkxYWU2N2E0MjU3OTNlYzFiMmIxMzIzNjk0NTQyMDcyZmY2Yzc0M2EzMDk4YTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.eD3sEdrqz226ckQZwwcCmKGzdG_J29upNy1zoOxXM5Y
https://private-user-images.githubusercontent.com/41743566/715090906-71f30c12-ce8a-4503-a2de-8a71d9761e45.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NzU4MTYsIm5iZiI6MTc5NTU3NTUxNiwicGF0aCI6Ii80MTc0MzU2Ni83MTUwOTA5MDYtNzFmMzBjMTItY2U4YS00NTAzLWEyZGUtOGE3MWQ5NzYxZTQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI1VDAyNTgzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwODdmZGRmYWNiYTIxMWNiOWMxZDNiZjVjYzM4ODM1YmI3NzMxMjA0Njk5ZmFkMTdmYWQ2ZWE1NjExYjRkODcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.8ugYaLbCVtESLxcTs0afvTL3HCwNyg1qZcFyfRgIttg
github-actionshttps://github.com/apps/github-actions
first-contributionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22first-contribution%22
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32641#event-36922671683
melissawmhttps://github.com/melissawm
backend: agghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20agg%22
on Nov 22, 2026https://github.com/matplotlib/matplotlib/issues/32641#event-36941720643
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/32641
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32641
backend: agghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20agg%22
first-contributionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22first-contribution%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.