From 454c682143c6a09211b5039a94350952503358f2 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 4 May 2021 15:02:31 -0400 Subject: [PATCH] Update Figure.meca 'offset' alias to match GMT 6.2.0rc1 syntax (#1255) Change the "offset" alias from C to A, to match the GMT 6.2.0rc1 syntax. --- pygmt/src/meca.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index e73f95b35ea..cde18474165 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -98,8 +98,8 @@ def data_format_code(convention, component="full"): @use_alias( R="region", J="projection", + A="offset", B="frame", - C="offset", N="no_clip", V="verbose", X="xshift", @@ -334,8 +334,8 @@ def update_pointers(data_pointers): if arg is None: spec.append(0) else: - if "C" not in kwargs: - kwargs["C"] = True + if "A" not in kwargs: + kwargs["A"] = True spec.append(arg) # or assemble the 2D array for the case of lists as values @@ -389,8 +389,8 @@ def update_pointers(data_pointers): if arg is None: row.append(0) else: - if "C" not in kwargs: - kwargs["C"] = True + if "A" not in kwargs: + kwargs["A"] = True row.append(arg[index]) spec_array.append(row) spec = spec_array @@ -435,8 +435,8 @@ def update_pointers(data_pointers): if arg is None: row.append(0) else: - if "C" not in kwargs: - kwargs["C"] = True + if "A" not in kwargs: + kwargs["A"] = True row.append(arg[index]) spec_array.append(row) spec = spec_array