Skip to content

Commit

Permalink
Move description for -l common option to pygmt/helpers/decorators.py (G…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
3 people authored and Josh Sixsmith committed Dec 21, 2022
1 parent 79aeabc commit b5966aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@
(:gmt-term:`PROJ_MEAN_RADIUS`), and the specification of latitude type
(:gmt-term:`PROJ_AUX_LATITUDE`). Geodesic distance calculations is also
controlled by method (:gmt-term:`PROJ_GEODESIC`).""",
"l": r"""
label : str
Add a legend entry for the symbol or line being plotted. Full
documentation is at :gmt-docs:`gmt.html#l-full`.""",
"n": r"""
interpolation : str
[**b**\|\ **c**\|\ **l**\|\ **n**][**+a**][**+b**\ *BC*][**+c**][**+t**\ *threshold*].
Expand Down
3 changes: 1 addition & 2 deletions pygmt/src/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def histogram(self, table, **kwargs):
{XY}
{U}
{V}
label : str
Add a legend entry for the symbol or line being plotted.
{l}
{p}
{t}
"""
Expand Down
4 changes: 1 addition & 3 deletions pygmt/src/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ def plot(self, x=None, y=None, data=None, size=None, direction=None, **kwargs):
{c}
{f}
{i}
label : str
Add a legend entry for the symbol or line being plotted.
{l}
{p}
{t}
*transparency* can also be a 1d array to set varying transparency
Expand Down
3 changes: 1 addition & 2 deletions pygmt/src/plot3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ def plot3d(
{c}
{f}
{i}
label : str
Add a legend entry for the symbol or line being plotted.
{l}
{p}
{t}
*transparency* can also be a 1d array to set varying transparency
Expand Down

0 comments on commit b5966aa

Please sign in to comment.