Figure.contour: Adjust processing of arguments passed to the "annotation" and "levels" parameters#2706
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)DetailsAdded 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
annotationandlevelsparameters 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 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 commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version