-
Notifications
You must be signed in to change notification settings - Fork 228
POC: Figure.clip: Clip paths by polygons, land or water #3878
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
base: main
Are you sure you want to change the base?
Conversation
Hm. Maybe adding the method to |
No, it won't work, because |
Description of proposed changes
This is an initial implementation of wrapping the
clip
method, based on the idea proposed in #1706 (comment), i.e., integrate all clipping functionalities (clip
for clipping a polygon path,coast
for clipping the land, water or dcw, and maybe more).Figure.clip.land()
coast -G
coast -Q
Figure.clip.water()
coast -S
coast -Q
Figure.clip.polygon()
clip
clip -C
Figure.clip.mask()
mask
mask -C
Figure.clip.dcw()
coast -E+c
coast -Q
Figure.clip.solar()
solar -G
clip -C
TODO
Figure.clip.land()
Figure.clip.water()
Figure.clip.polygon()
Figure.clip.mask()
Figure.clip.dcw()
Figure.clip.solar()
Syntax
Example
Supersedes PR #1779, #1706
Preview:
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash command is:
/format
: automatically format and lint the code