From 631864c9ab3979ec24f8e6205acc49815121ac02 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sun, 21 Mar 2021 10:40:43 -0400 Subject: [PATCH 1/3] Add aspatial alias to COMMON_OPTIONS --- pygmt/helpers/decorators.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pygmt/helpers/decorators.py b/pygmt/helpers/decorators.py index 7cc88f4a014..299bce43644 100644 --- a/pygmt/helpers/decorators.py +++ b/pygmt/helpers/decorators.py @@ -62,6 +62,12 @@ Shift plot origin in y-direction. Full documentation is at :gmt-docs:`gmt.html#xy-full`. """, + "a": r""" + aspatial : str + [*col*\ =]\ *name*\ [,...] + Control how aspatial data are handled during input and output. + Full documentation is at :gmt-docs:`gmt.html#aspatial-full`. + """, "c": r""" panel : bool or int or list [*row,col*\|\ *index*]. From 9f2864449f3c392fe3942705892143ab58d8f0a8 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sun, 21 Mar 2021 10:41:53 -0400 Subject: [PATCH 2/3] Add aspatial alias to blockmedian, info, plot, plot3d, surface --- pygmt/src/blockmedian.py | 2 ++ pygmt/src/info.py | 2 ++ pygmt/src/plot.py | 2 ++ pygmt/src/plot3d.py | 2 ++ pygmt/src/surface.py | 2 ++ 5 files changed, 10 insertions(+) diff --git a/pygmt/src/blockmedian.py b/pygmt/src/blockmedian.py index 4e7d950f7c7..350f12ba5f0 100644 --- a/pygmt/src/blockmedian.py +++ b/pygmt/src/blockmedian.py @@ -20,6 +20,7 @@ I="spacing", R="region", V="verbose", + a="aspatial", f="coltypes", r="registration", ) @@ -58,6 +59,7 @@ def blockmedian(table, outfile=None, **kwargs): file. {V} + {a} {f} {r} diff --git a/pygmt/src/info.py b/pygmt/src/info.py index 57a62a6412a..7d9d94155b6 100644 --- a/pygmt/src/info.py +++ b/pygmt/src/info.py @@ -18,6 +18,7 @@ I="spacing", T="nearest_multiple", V="verbose", + a="aspatial", f="coltypes", r="registration", ) @@ -62,6 +63,7 @@ def info(table, **kwargs): of dz and output this in the form ``[zmin, zmax, dz]``. {V} + {a} {f} {r} diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index 1d50bb4e416..0a966921858 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -34,6 +34,7 @@ X="xshift", Y="yshift", Z="zvalue", + a="aspatial", i="columns", l="label", c="panel", @@ -181,6 +182,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs): polygon in the input data. To apply it to the fill color, use ``color='+z'``. To apply it to the pen color, append **+z** to ``pen``. + {a} {c} {f} columns : str or 1d array diff --git a/pygmt/src/plot3d.py b/pygmt/src/plot3d.py index 52b925fcaea..fa49ed6f67a 100644 --- a/pygmt/src/plot3d.py +++ b/pygmt/src/plot3d.py @@ -34,6 +34,7 @@ X="xshift", Y="yshift", Z="zvalue", + a="aspatial", i="columns", l="label", c="panel", @@ -151,6 +152,7 @@ def plot3d( polygon in the input data. To apply it to the fill color, use ``color='+z'``. To apply it to the pen color, append **+z** to ``pen``. + {a} {c} {f} label : str diff --git a/pygmt/src/surface.py b/pygmt/src/surface.py index d7b242d40c3..70bee5978f5 100644 --- a/pygmt/src/surface.py +++ b/pygmt/src/surface.py @@ -22,6 +22,7 @@ R="region", G="outfile", V="verbose", + a="aspatial", f="coltypes", r="registration", ) @@ -67,6 +68,7 @@ def surface(x=None, y=None, z=None, data=None, **kwargs): to store the grid in. {V} + {a} {f} {r} From 8549b4d68d86740a7211f4b19eb1fb0fbf9152b0 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Sun, 21 Mar 2021 16:28:23 -0400 Subject: [PATCH 3/3] Update pygmt/helpers/decorators.py Co-authored-by: Dongdong Tian --- pygmt/helpers/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/helpers/decorators.py b/pygmt/helpers/decorators.py index 299bce43644..706e633b6a2 100644 --- a/pygmt/helpers/decorators.py +++ b/pygmt/helpers/decorators.py @@ -64,7 +64,7 @@ """, "a": r""" aspatial : str - [*col*\ =]\ *name*\ [,...] + [*col*\ =]\ *name*\ [,...]. Control how aspatial data are handled during input and output. Full documentation is at :gmt-docs:`gmt.html#aspatial-full`. """,