-
Notifications
You must be signed in to change notification settings - Fork 224
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
Wrap clip #1779
base: main
Are you sure you want to change the base?
Conversation
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Report last updated at commit 5f67979 |
The -C documentation says
How can we revert the -X and -Y setttings in a context manager? |
Possibly we could use |
We might not have to do anything about this. See discussion/confusion at GenericMappingTools/gmt#6406. |
Paul and I could not figure out what this is in reference to and suspect it relates to obsolete behavior, so I removed this statement from the docs in GenericMappingTools/gmt#6450. |
Hi @maxrjones @seisman |
@jhtong33 If you're interested in working on this feature, you can either take over this PR (i.e., pushing your changes into this branch directly) or start your own PR. |
Unfortunately I don't expect to have time to progress this PR further in the near future and welcome others taking it over or starting fresh separately. |
Description of proposed changes
Following a couple comments at #1706, this PR suggests an implementation of GMT's clip module using a
with
statement/context manager. It uses the same style as the subplot and inset methods of pygmt.Figure. Here is an example:To do:
Fixes #
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 commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version