-
Notifications
You must be signed in to change notification settings - Fork 234
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
clipmethod, based on the idea proposed in #1706 (comment), i.e., integrate all clipping functionalities (clipfor clipping a polygon path,coastfor clipping the land, water or dcw, and maybe more).Figure.clip.land()coast -Gcoast -QFigure.clip.water()coast -Scoast -QFigure.clip.polygon()clipclip -CFigure.clip.mask()maskmask -CFigure.clip.dcw()coast -E+ccoast -QFigure.clip.solar()solar -Gclip -CTODO
Figure.clip.land()Figure.clip.water()Figure.clip.polygon()Figure.clip.mask()Figure.clip.dcw()Figure.clip.solar()Figure.solar: Plot day-night terminators and other sunlight parameters. #4110Syntax
Example
Supersedes PR #1779, #1706
Preview:
Reminders
make formatandmake checkto 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