From b20ef24f1940fc77664439ba31dc02835f35a83d Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 16 Oct 2024 14:32:04 +0200 Subject: [PATCH 1/5] Add aliases for T P axes --- pygmt/src/meca.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index 9822dae1f23..6803160629b 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -190,6 +190,11 @@ def convention_params(convention): B="frame", C="cmap", E="extensionfill", + Fa="pt_axes", + Fe="t_axisfill", + Fg="p_axisfill", + Ft="t_axispen", + Fp="p_axispen", Fr="labelbox", G="compressionfill", J="projection", @@ -378,6 +383,26 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 transparent by drawing only the nodal planes and the circumference. For non-double couple mechanisms, ``nodal=0`` overlays best double couple transparently. + pt_axes : bool or str + [*size*[/*p_symbol*[*t_symbol*]]]. + Compute and plot P and T axes with symbols. Optionally specify size and + (separate) P and T axes symbols from the following: circle (**c**), + diamond (**d**), hexagon (**h**), inverse triangle (**i**), point (**p**), + square (**s**), triangle (**t**), cross (**x**) [Default is ``"6p/cc"``]. + p_axisfill : str + Set color or pattern for filling the P axis symbol [Default is set via + ``compressionfill``]. + t_axisfill : str + Set color or pattern for filling the T axis symbol [Default is set via + ``extensionfill``]. + p_axispen : bool or str + [*pen*]. + Draw the P axis outline. Use *pen* to set the pen attributes for this + feature [Default is set via ``pen``]. + t_axispen : bool or str + [*pen*]. + Draw the T axis outline. Use *pen* to set the pen attributes for this + feature [Default is set via ``pen``]. cmap : str File name of a CPT file or a series of comma-separated colors (e.g., *color1,color2,color3*) to build a linear continuous CPT from those From de86222ed68c4bb8dea113c6c9e64837adcde8b3 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 16 Oct 2024 14:37:22 +0200 Subject: [PATCH 2/5] Add missing word --- pygmt/src/meca.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index 6803160629b..516befbf9f0 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -385,8 +385,8 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 double couple transparently. pt_axes : bool or str [*size*[/*p_symbol*[*t_symbol*]]]. - Compute and plot P and T axes with symbols. Optionally specify size and - (separate) P and T axes symbols from the following: circle (**c**), + Compute and plot the P and T axes with symbols. Optionally specify size + and (separate) P and T axes symbols from the following: circle (**c**), diamond (**d**), hexagon (**h**), inverse triangle (**i**), point (**p**), square (**s**), triangle (**t**), cross (**x**) [Default is ``"6p/cc"``]. p_axisfill : str From 0a3b7326f3b246fec26bad219c10e85bd056d257 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 16 Oct 2024 14:59:58 +0200 Subject: [PATCH 3/5] Fix syntax and add word --- pygmt/src/meca.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index 516befbf9f0..4edfd78b4eb 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -384,7 +384,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 For non-double couple mechanisms, ``nodal=0`` overlays best double couple transparently. pt_axes : bool or str - [*size*[/*p_symbol*[*t_symbol*]]]. + [*size*[/*p_symbol*\ [*t_symbol*]]]. Compute and plot the P and T axes with symbols. Optionally specify size and (separate) P and T axes symbols from the following: circle (**c**), diamond (**d**), hexagon (**h**), inverse triangle (**i**), point (**p**), @@ -397,12 +397,12 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 ``extensionfill``]. p_axispen : bool or str [*pen*]. - Draw the P axis outline. Use *pen* to set the pen attributes for this - feature [Default is set via ``pen``]. + Draw the P axis symbol outline. Use *pen* to set the pen attributes for + this feature [Default is set via ``pen``]. t_axispen : bool or str [*pen*]. - Draw the T axis outline. Use *pen* to set the pen attributes for this - feature [Default is set via ``pen``]. + Draw the T axis symbol outline. Use *pen* to set the pen attributes for + this feature [Default is set via ``pen``]. cmap : str File name of a CPT file or a series of comma-separated colors (e.g., *color1,color2,color3*) to build a linear continuous CPT from those From c6f12228317ac35e5f7a093f2f266e69028e617c Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 16 Oct 2024 15:09:02 +0200 Subject: [PATCH 4/5] Remove double plural --- pygmt/src/meca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index 4edfd78b4eb..bd05c98cbb4 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -386,7 +386,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 pt_axes : bool or str [*size*[/*p_symbol*\ [*t_symbol*]]]. Compute and plot the P and T axes with symbols. Optionally specify size - and (separate) P and T axes symbols from the following: circle (**c**), + and (separate) P and T axis symbols from the following: circle (**c**), diamond (**d**), hexagon (**h**), inverse triangle (**i**), point (**p**), square (**s**), triangle (**t**), cross (**x**) [Default is ``"6p/cc"``]. p_axisfill : str From 10a164902d42dc8eb1ded941b7a8a5673a3325fe Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 16 Oct 2024 15:17:06 +0200 Subject: [PATCH 5/5] Fix syntax --- pygmt/src/meca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index bd05c98cbb4..fed40d4e756 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -384,7 +384,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 For non-double couple mechanisms, ``nodal=0`` overlays best double couple transparently. pt_axes : bool or str - [*size*[/*p_symbol*\ [*t_symbol*]]]. + [*size*\ [/*p_symbol*\ [*t_symbol*]]]. Compute and plot the P and T axes with symbols. Optionally specify size and (separate) P and T axis symbols from the following: circle (**c**), diamond (**d**), hexagon (**h**), inverse triangle (**i**), point (**p**),