Title: [Bug]: Poor rendering of Poly3DCollection with axlim clipping · Issue #29373 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Poor rendering of Poly3DCollection with axlim clipping · Issue #29373 · matplotlib/matplotlib
X Title: [Bug]: Poor rendering of Poly3DCollection with axlim clipping · Issue #29373 · matplotlib/matplotlib
Description: Bug summary When plotting Poly3DCollection with axlim_clip=True, the patch is split into multiple patches and renders poorly. I am leaning towards this being the "correct" behavior, but want to open the bug report to document it and see ...
Open Graph Description: Bug summary When plotting Poly3DCollection with axlim_clip=True, the patch is split into multiple patches and renders poorly. I am leaning towards this being the "correct" behavior, but want to ope...
X Description: Bug summary When plotting Poly3DCollection with axlim_clip=True, the patch is split into multiple patches and renders poorly. I am leaning towards this being the "correct" behavior, but w...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29373
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Poor rendering of Poly3DCollection with axlim clipping","articleBody":"### Bug summary\n\nWhen plotting `Poly3DCollection` with `axlim_clip=True`, the patch is split into multiple patches and renders poorly.\n\nI am leaning towards this being the \"correct\" behavior, but want to open the bug report to document it and see if anyone has a solution that solves this cleanly.\n\n### Code for reproduction\n\n```Python\nimport numpy as np\nimport matplotlib.pyplot as plt\n\n# Generate some random data\nnp.random.seed(42)\nx = np.arange(10)\ny = np.zeros_like(x)\nz = np.random.randint(5, 10, 10)\n\nfig, ax = plt.subplots(1, 1, subplot_kw={'projection': '3d'})\nax.fill_between(x, y, z, x, 0, 0, axlim_clip=True)\nax.set_xlim(0, 8)\nplt.show()\n```\n\n\n### Actual outcome\n\n\n\n\n### Expected outcome\n\n\n\n\n### Additional information\n\nThere are two workarounds for this particular example:\n1) Restrict the data to the x=[0, 8] range before plotting.\n2) Use `fill_between` with the `quad` mode like so:\n\n```python\nax.fill_between(x, y, z, x, 0, 0, axlim_clip=True, mode='quad', shade=False)\n```\n\n### Matplotlib Version\n\n3.10.0\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/scottshambaugh","@type":"Person","name":"scottshambaugh"},"datePublished":"2024-12-22T20:54:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/29373/matplotlib/issues/29373"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:867a89d9-3d49-fefe-42aa-a548d6a2196f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E596:29BECE:1923F2D:213B9A8:6A51D415 |
| html-safe-nonce | 7239ff3c6ac57bb38cfc04a3b27ac99f48d2e15c8ec7276887dc98a657b42503 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTk2OjI5QkVDRToxOTIzRjJEOjIxM0I5QTg6NkE1MUQ0MTUiLCJ2aXNpdG9yX2lkIjoiNzQ3MzgyNTEyMzg5NTc1NzAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e6eba57781a296f786bb836fd76297aedeb164e1d2edfe58003f3f16363cd4e2 |
| hovercard-subject-tag | issue:2754839867 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/29373/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d2424e14ae643d31c5700c0a1cb75c9e5db791a552f8220d8ce3244401d32b9/matplotlib/matplotlib/issues/29373 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d2424e14ae643d31c5700c0a1cb75c9e5db791a552f8220d8ce3244401d32b9/matplotlib/matplotlib/issues/29373 |
| og:image:alt | Bug summary When plotting Poly3DCollection with axlim_clip=True, the patch is split into multiple patches and renders poorly. I am leaning towards this being the "correct" behavior, but want to ope... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scottshambaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width