Skip to content
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

Turn all short aliases into long form #474

Merged
merged 25 commits into from
Jun 4, 2020
Merged
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c75d2d1
Turn common aliases from short form to long form
weiji14 Jun 1, 2020
1e14b72
Fix fmt_docstring test
weiji14 Jun 1, 2020
144effa
Alias U as timestamp instead of logo
weiji14 Jun 1, 2020
2223ae2
Remove short aliases for makecpt
weiji14 Jun 2, 2020
f5fc1a3
Remove short aliases for surface
weiji14 Jun 2, 2020
8906d59
Add common alias interpolation (n) for grdtrack
weiji14 Jun 2, 2020
db842e7
Remove short alias for which and refactor test
weiji14 Jun 2, 2020
71fb973
Remove short aliases from coast
seisman Jun 2, 2020
f131cd5
Remove short aliases from colorbar
seisman Jun 2, 2020
57f25ea
Improve docstring of colorbar
seisman Jun 2, 2020
ce6e84f
Remove short aliases from grdcontour
seisman Jun 2, 2020
cb5fb41
Remove short aliases from legend
seisman Jun 2, 2020
ac6aad3
Remove short aliases for logo
seisman Jun 2, 2020
52b8d0c
Aliased per_column(C), spacing(I), nearest_multiple(T) for info
weiji14 Jun 3, 2020
aa369dc
Remove short aliases for psconvert and improve fmt docstring
weiji14 Jun 3, 2020
718e786
Add U to docstring of grdcontour
seisman Jun 3, 2020
b8f7b33
Remove short aliases for plot
seisman Jun 3, 2020
30136d5
Remove short aliases for contour
seisman Jun 3, 2020
c320756
Improve docstring of text
weiji14 Jun 3, 2020
d9a3290
Remove short alias from image
weiji14 Jun 3, 2020
d87b7e4
Use frame instead of B for basemap.
weiji14 Jun 3, 2020
e3b5183
Fix a typo "book"->"bool"
seisman Jun 3, 2020
15b9c6b
Alias map_scale(L), rose(Td), compass(Tm) for basemap
weiji14 Jun 3, 2020
a1f5839
Change x, y to x/y in docstrings to make it look nicer
weiji14 Jun 4, 2020
8869feb
Fix string to str in docstrings
seisman Jun 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@

COMMON_OPTIONS = {
"R": """\
R : str or list
region : str or list
*Required if this is the first plot command*.
``'xmin/xmax/ymin/ymax[+r][+uunit]'``.
Specify the region of interest.""",
"J": """\
J : str
projection : str
*Required if this is the first plot command*.
Select map projection.""",
"B": """\
B : str or list
frame : str or list
Set map boundary frame and axes attributes.""",
"U": """\
U : bool or str
logo : bool or str
seisman marked this conversation as resolved.
Show resolved Hide resolved
Draw GMT time stamp logo on plot.""",
"CPT": """\
C : str
cmap : str
File name of a CPT file or ``C='color1,color2[,color3,...]'`` to
build a linear continuous CPT from those colors automatically.""",
"G": """\
G : str
color : str
Select color or pattern for filling of symbols or polygons. Default
is no fill.""",
"W": """\
W : str
pen : str
Set pen attributes for lines or the outline of symbols.""",
}

Expand All @@ -55,13 +55,13 @@ def fmt_docstring(module_func):

The following are places for common parameter descriptions:

* ``{R}``: R (region) option with 4 bounds
* ``{J}``: J (projection)
* ``{B}``: B (frame)
* ``{U}``: U (insert time stamp)
* ``{CPT}``: CPT (the color palette table)
* ``{G}``: G (color)
* ``{W}``: W (pen)
* ``{R}``: region (bounding box as west, east, south, north)
* ``{J}``: projection (coordinate system to use)
* ``{B}``: frame (map frame and axes parameters)
* ``{U}``: logo (insert time stamp logo)
weiji14 marked this conversation as resolved.
Show resolved Hide resolved
* ``{CPT}``: cmap (the color palette table)
* ``{G}``: color
* ``{W}``: pen

Parameters
----------
Expand Down Expand Up @@ -96,11 +96,11 @@ def fmt_docstring(module_func):
<BLANKLINE>
Parameters
----------
R : str or list
region : str or list
*Required if this is the first plot command*.
``'xmin/xmax/ymin/ymax[+r][+uunit]'``.
Specify the region of interest.
J : str
projection : str
*Required if this is the first plot command*.
Select map projection.
<BLANKLINE>
Expand Down