-
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
Figure.contour: Adjust processing of arguments passed to the "annotation" and "levels" parameters #2706
Conversation
Both parameters are very complicated and the current docstrings are too simple. |
OK, I will try to find time to expand the docstrings for the |
This is actually related to issue #1042 by @maxrjones. I am wondering whether we should decide on one of these two aliases and deprecate the other one (in a separate PR). |
I am still not too happy with the aliases for C of
So, maybe |
I agree that these two wrappers should have the same parameter names, but I'm not sure if we should use |
Summary of changed imagesThis is an auto-generated report of images that have changed on the DVC remote
Image diff(s)Added images
Modified images
Report last updated at commit 6c24c49 |
/format |
/format |
Description of proposed changes
This PR aims to adjust the arguments passed to the
annotation
andlevels
parameters ofFigure.contour
:- a fixed interval als float
100
->100
- one level as list:
[100]
->100,
(mention the trailing comma)- multiple levels as list:
[100, 200]
->100,200
- no as string:
"n"
->n
(syntax of GMT 6.5)Related:
annotation
: https://docs.generic-mapping-tools.org/dev/contour.html#ainterval
: https://docs.generic-mapping-tools.org/dev/contour.html#cFigure.grdcontour
: Figure.grdcontour: Adjust processing of arguments passed to the "annotation" and "interval" parameters, deprecate "sequence_plus" #3116Preview: https://pygmt-dev--3116.org.readthedocs.build/en/2706/api/generated/pygmt.Figure.contour.html
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