Skip to content

Added ContourSet clip_path kwarg and set_clip_path() method (#2369) #8321

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

Closed
wants to merge 3 commits into from
Closed

Added ContourSet clip_path kwarg and set_clip_path() method (#2369) #8321

wants to merge 3 commits into from

Conversation

cdepano
Copy link

@cdepano cdepano commented Mar 17, 2017

Adds implementation for issue #2369.

Implemented clip_path kwarg, get_clip_path(), and set_clip_path() in ContourSet.

Added unit tests, and baseline images for image comparison.

We added both options of setting the clip_path as described in issue #2369 in case of a refactor of the ContourSet kwargs. (i.e. plt.contourf(data, clip_path=poly) and plt.contourf(data).set_clip_path(poly))

@jklymak jklymak added this to the v3.0 milestone Jan 19, 2018
@jklymak
Copy link
Member

jklymak commented Jan 19, 2018

There are some conflicts now, but this seems reasonable. Not sure why it didn't get traction...

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I don't think you need so many image tests - unless I'm missing something one shape and one None should be fine. The image tests should style='mpl20', remove_text=True

@tacaswell tacaswell modified the milestones: v3.0, v3.1 Jul 7, 2018
@jklymak jklymak added the stale label Feb 10, 2019
@jklymak jklymak modified the milestones: v3.1.0, v3.2.0 Feb 10, 2019
@jklymak
Copy link
Member

jklymak commented Jul 16, 2019

Thanks a lot for the contribution. I'm going to close this as having had no action for quite a while. OTOH, if there is still a community that wants this, please feel free to re-open, with my apologies!

@jklymak jklymak closed this Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants