From 848d210dad883d5fcb4a5863d3be899457987d48 Mon Sep 17 00:00:00 2001 From: Sean Ho Date: Mon, 28 Jun 2021 23:21:35 +0800 Subject: [PATCH] Add common alias "verbose" (V) to grdlandmask and savefig --- pygmt/figure.py | 7 ++++++- pygmt/src/grdlandmask.py | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pygmt/figure.py b/pygmt/figure.py index 59fa4cf79ce..204113098eb 100644 --- a/pygmt/figure.py +++ b/pygmt/figure.py @@ -132,6 +132,7 @@ def region(self): I="icc_gray", T="fmt", Q="anti_aliasing", + V="verbose", ) @kwargs_to_strings() def psconvert(self, **kwargs): @@ -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 @@ -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 @@ -211,6 +213,8 @@ def savefig( You can pass in any keyword arguments that :meth:`pygmt.Figure.psconvert` accepts. + {aliases} + Parameters ---------- fname : str @@ -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") diff --git a/pygmt/src/grdlandmask.py b/pygmt/src/grdlandmask.py index ad6fb693fdc..1da363dc2fe 100644 --- a/pygmt/src/grdlandmask.py +++ b/pygmt/src/grdlandmask.py @@ -19,6 +19,7 @@ G="outgrid", I="spacing", R="region", + V="verbose", r="registration", ) @kwargs_to_strings(R="sequence") @@ -44,6 +45,7 @@ def grdlandmask(**kwargs): in. {I} {R} + {V} {r} Returns