From da849134bcd960264429f2e2fbcb6626a83eac4e Mon Sep 17 00:00:00 2001 From: Michael Grund <23025878+michaelgrund@users.noreply.github.com> Date: Sun, 12 Sep 2021 16:08:21 +0200 Subject: [PATCH 1/2] Add missing aliases to pygmt.Figure.plot --- pygmt/src/plot.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index a0acd6c8e81..857bdd1688e 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -39,12 +39,18 @@ Y="yshift", Z="zvalue", a="aspatial", - i="incols", - l="label", + b="binary", c="panel", + d="nodata", + e="find", f="coltypes", + g="gap", + h="header", + i="incols", + l="label", p="perspective", t="transparency", + w="wrap", ) @kwargs_to_strings(R="sequence", c="sequence_comma", i="sequence_comma", p="sequence") def plot(self, x=None, y=None, data=None, size=None, direction=None, **kwargs): @@ -192,14 +198,20 @@ def plot(self, x=None, y=None, data=None, size=None, direction=None, **kwargs): ``color='+z'``. To apply it to the pen color, append **+z** to ``pen``. {a} + {b} {c} + {d} + {e} {f} + {g} + {h} {i} {l} {p} {t} *transparency* can also be a 1d array to set varying transparency for symbols, but this option is only valid if using x/y. + {w} """ # pylint: disable=too-many-locals kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access From 0691a1a8956f64fc28d259c1fb80320aa02c82ef Mon Sep 17 00:00:00 2001 From: Michael Grund Date: Sun, 12 Sep 2021 16:18:15 +0200 Subject: [PATCH 2/2] formatting --- pygmt/src/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index 857bdd1688e..024d71b5ea8 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -50,7 +50,7 @@ l="label", p="perspective", t="transparency", - w="wrap", + w="wrap", ) @kwargs_to_strings(R="sequence", c="sequence_comma", i="sequence_comma", p="sequence") def plot(self, x=None, y=None, data=None, size=None, direction=None, **kwargs): @@ -211,7 +211,7 @@ def plot(self, x=None, y=None, data=None, size=None, direction=None, **kwargs): {t} *transparency* can also be a 1d array to set varying transparency for symbols, but this option is only valid if using x/y. - {w} + {w} """ # pylint: disable=too-many-locals kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access