Skip to content

Commit

Permalink
Add common alias "verbose" (V) to grdlandmask and savefig
Browse files Browse the repository at this point in the history
  • Loading branch information
sean0921 committed Jun 28, 2021
1 parent b2808cf commit 848d210
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pygmt/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def region(self):
I="icc_gray",
T="fmt",
Q="anti_aliasing",
V="verbose",
)
@kwargs_to_strings()
def psconvert(self, **kwargs):
Expand Down Expand Up @@ -185,6 +186,7 @@ def psconvert(self, **kwargs):
both an EPS and a PDF file. Using **F** creates a multi-page PDF
file from the list of input PS or PDF files. It requires the
``prefix`` parameter.
{V}
"""
kwargs = self._preprocess(**kwargs)
# Default cropping the figure to True
Expand All @@ -198,7 +200,7 @@ def psconvert(self, **kwargs):
def savefig(
self, fname, transparent=False, crop=True, anti_alias=True, show=False, **kwargs
):
"""
r"""
Save the figure to a file.
This method implements a matplotlib-like interface for
Expand All @@ -211,6 +213,8 @@ def savefig(
You can pass in any keyword arguments that
:meth:`pygmt.Figure.psconvert` accepts.
{aliases}
Parameters
----------
fname : str
Expand All @@ -232,6 +236,7 @@ def savefig(
dpi : int
Set raster resolution in dpi. Default is 720 for PDF, 300 for
others.
{V}
"""
# All supported formats
fmts = dict(png="g", pdf="f", jpg="j", bmp="b", eps="e", tif="t", kml="g")
Expand Down
2 changes: 2 additions & 0 deletions pygmt/src/grdlandmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
G="outgrid",
I="spacing",
R="region",
V="verbose",
r="registration",
)
@kwargs_to_strings(R="sequence")
Expand All @@ -44,6 +45,7 @@ def grdlandmask(**kwargs):
in.
{I}
{R}
{V}
{r}
Returns
Expand Down

0 comments on commit 848d210

Please sign in to comment.