Title: Modified axes patch will not re-clip artists · Issue #4788 · matplotlib/matplotlib · GitHub
Open Graph Title: Modified axes patch will not re-clip artists · Issue #4788 · matplotlib/matplotlib
X Title: Modified axes patch will not re-clip artists · Issue #4788 · matplotlib/matplotlib
Description: This probably doesn't come up too much since most people plot in Cartesian, but I've run into it working on #4699. Artists are only clipped to whatever the patch looked like at the time that the artist was added to the axes. I have track...
Open Graph Description: This probably doesn't come up too much since most people plot in Cartesian, but I've run into it working on #4699. Artists are only clipped to whatever the patch looked like at the time that the ar...
X Description: This probably doesn't come up too much since most people plot in Cartesian, but I've run into it working on #4699. Artists are only clipped to whatever the patch looked like at the time tha...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4788
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modified axes patch will not re-clip artists","articleBody":"This probably doesn't come up too much since most people plot in Cartesian, but I've run into it working on #4699. Artists are only clipped to whatever the patch looked like at the time that the artist was added to the axes. I have tracked down the issue and just want determine the best way forward.\n\nThe problem arises from the fact that axes use a `Patch` for the background and default clipping definitions while artists use a `Path` for actual clipping. To get this `Path`, the path and transform are pulled from the `Patch` and placed in a `TransformedPath`. This is all well and good for Cartesian axes with rectangles, because they're always unit squares where only the transform is changed. But as part of #4699, the `PolarAxes` use a `Wedge` and every time parameters are changed, a new `Path` is calculated. This new `Path` has no link to the `TransformedPath` used by any existing `Artist`s and they end up clipping using some old version. The user could get around this by plotting only after setting all the limits for the axes, but I find that less than ideal.\n\nSo the question is how to remedy this issue. I see a couple options:\n- `Wedge` always returns the same `Path` object, but just changes the underlying vertices/codes. I don't see that `Path` provides an easy way to do so though.\n- Add a `TransformedPatch` analogue to `TransformedPath`.\n\nThat being said, I'm not sure how the clipping path would get informed that the underlying (untransformed) `Patch` or `Path` was modified since only `Transforms` have that invalidation code (or maybe I missed something for it.)\n","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2015-07-25T08:45:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4788/matplotlib/issues/4788"}
| 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:8c69cff3-29ad-26f2-aed7-30595322904c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D92A:15E14F:369983:4C5CA8:6A537355 |
| html-safe-nonce | 94a947e46d400db441886e88f4e141a0912b55f9e978f94e7a7dfbe3be537d8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTJBOjE1RTE0RjozNjk5ODM6NEM1Q0E4OjZBNTM3MzU1IiwidmlzaXRvcl9pZCI6IjQ3NDg1OTgzMjkwODgzNzM1ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 837f2a690ebd309c55ee62d0b9c273368a2f5479a69957ab83ffd8c1f39d37cc |
| hovercard-subject-tag | issue:97209193 |
| 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/4788/issue_layout |
| twitter:image | https://opengraph.githubassets.com/318813370ab630625524e7fd28d843a7f18f0f8afa43bc20a2d2c6d2d44bbefb/matplotlib/matplotlib/issues/4788 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/318813370ab630625524e7fd28d843a7f18f0f8afa43bc20a2d2c6d2d44bbefb/matplotlib/matplotlib/issues/4788 |
| og:image:alt | This probably doesn't come up too much since most people plot in Cartesian, but I've run into it working on #4699. Artists are only clipped to whatever the patch looked like at the time that the ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width