New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified axes patch will not re-clip artists #4788
Comments
attn @mdboom |
Could this also explain the recent report for Basemap of the pcolormesh not
|
I'm not too sure that Basemap sets an axes patch at all. |
Turns out the Basemap issue was a user error. On Fri, Aug 14, 2015 at 3:00 AM, Elliott Sales de Andrade <
|
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.
The problem arises from the fact that axes use a
Patch
for the background and default clipping definitions while artists use aPath
for actual clipping. To get thisPath
, the path and transform are pulled from thePatch
and placed in aTransformedPath
. 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, thePolarAxes
use aWedge
and every time parameters are changed, a newPath
is calculated. This newPath
has no link to theTransformedPath
used by any existingArtist
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.So the question is how to remedy this issue. I see a couple options:
Wedge
always returns the samePath
object, but just changes the underlying vertices/codes. I don't see thatPath
provides an easy way to do so though.TransformedPatch
analogue toTransformedPath
.That being said, I'm not sure how the clipping path would get informed that the underlying (untransformed)
Patch
orPath
was modified since onlyTransforms
have that invalidation code (or maybe I missed something for it.)The text was updated successfully, but these errors were encountered: