-
Notifications
You must be signed in to change notification settings - Fork 225
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
Move description for -l common option to pygmt/helpers/decorators.py #1408
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Co-authored-by: Dongdong Tian <[email protected]>
pygmt/helpers/decorators.py
Outdated
label : str | ||
Add a legend entry for the symbol or line being plotted.""", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking, do we want to add the complicated -l
stuff at https://github.com/GenericMappingTools/gmt/blob/6.2.0/doc/rst/source/explain_-l.rst_? And/or link to https://docs.generic-mapping-tools.org/6.2/gmt.html#l-full?
label : str | |
Add a legend entry for the symbol or line being plotted.""", | |
label : str | |
[*label*]\ [**+D**\ *pen*][**+G**\ *gap*][**+H**\ *header*][**+L**\ [*code*/]\ *txt*][**+N**\ *cols*][**+S**\ *size*\ [/*height*]][**+V**\ [*pen*]][**+f**\ *font*][**+g**\ *fill*][**+j**\ *just*][**+o**\ *off*][**+p**\ *pen*][**+s**\ *scale*][**+w**\ *width*] | |
Add a legend entry for the symbol or line being plotted.""", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could add a link to the GMT docs. I chose not to add the complicated stuff because I thought the argument format could change in the near future with #1082.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's just add the link then. I also noticed that contour
and grdcontour
could benefit from a link to https://docs.generic-mapping-tools.org/6.2/gmt.html#l-full, but we can leave that for someone else to do in the ESWN workshop :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge in directly. Thanks @meghanrjones!
…enericMappingTools#1408) * Move label description to COMMON OPTIONS * Add link to full -l docs Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Michael Grund <[email protected]>
Description of proposed changes
This PR moves the description for the -l common option to pygmt/helpers/decorators.py for three methods that use the same description. Note that the alias used for PyGMT (label) is different than that for core GMT and GMT.jl (legend).
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