From 7fc07576e44c854af0f07be5ce1c4f6cf26795be Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Tue, 30 May 2023 22:05:24 +0200 Subject: [PATCH 1/4] Expand docstrings for 'compressionfill' and 'offset' regarding fill of circle --- pygmt/src/meca.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index f48ef0ba188..7a4b310ce45 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -214,10 +214,13 @@ def meca( is plotted at the initial location and a line connects the beachball to the circle. Use **+s**\ *size* to set the diameter of the circle [Default is no circle]. Use **+p**\ *pen* to set the line pen - attributes [Default is ``"0.25p"``]. + attributes [Default is ``"0.25p"``]. The fill of the circle is set + via ``compressionfill``, i.e., corresponds to the fill of the + compressive quadrants. compressionfill : str Set color or pattern for filling compressive quadrants - [Default is ``"black"``]. + [Default is ``"black"``]. This setting applies also to the fill of + the circle defined via ``offset``. extensionfill : str Set color or pattern for filling extensive quadrants [Default is ``"white"``]. From 6f0359acdb1d996dfcac5483153944a6dbdd3c37 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Tue, 30 May 2023 23:25:12 +0200 Subject: [PATCH 2/4] Expand docstrings for 'cmap' and 'offset' regarding fill of circle --- pygmt/src/meca.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index 7a4b310ce45..729b30ece16 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -215,8 +215,8 @@ def meca( to the circle. Use **+s**\ *size* to set the diameter of the circle [Default is no circle]. Use **+p**\ *pen* to set the line pen attributes [Default is ``"0.25p"``]. The fill of the circle is set - via ``compressionfill``, i.e., corresponds to the fill of the - compressive quadrants. + via ``compressionfill`` or ``cmap``, i.e., corresponds to the fill + of the compressive quadrants. compressionfill : str Set color or pattern for filling compressive quadrants [Default is ``"black"``]. This setting applies also to the fill of @@ -232,7 +232,8 @@ def meca( *color1,color2,color3*) to build a linear continuous CPT from those colors automatically. The color of the compressive quadrants is determined by the z-value (i.e., event depth or the third column for - an input file). + an input file). This setting applies also to the fill of the circle + defined via ``offset``. no_clip : bool Do **not** skip symbols that fall outside the frame boundaries [Default is ``False``, i.e., plot symbols inside the frame From de1c0683081ee6d0310c1b06501adc46dd1f43ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Wed, 31 May 2023 09:13:20 +0200 Subject: [PATCH 3/4] Fix word order Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com> --- 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 729b30ece16..ce41df00127 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -219,7 +219,7 @@ def meca( of the compressive quadrants. compressionfill : str Set color or pattern for filling compressive quadrants - [Default is ``"black"``]. This setting applies also to the fill of + [Default is ``"black"``]. This setting also applies to the fill of the circle defined via ``offset``. extensionfill : str Set color or pattern for filling extensive quadrants From 11030fd0da8fbf64fd0ad340eb949d0fab02cbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Wed, 31 May 2023 09:13:36 +0200 Subject: [PATCH 4/4] Fix word order Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com> --- 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 ce41df00127..0dd0d5e4dad 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -232,7 +232,7 @@ def meca( *color1,color2,color3*) to build a linear continuous CPT from those colors automatically. The color of the compressive quadrants is determined by the z-value (i.e., event depth or the third column for - an input file). This setting applies also to the fill of the circle + an input file). This setting also applies to the fill of the circle defined via ``offset``. no_clip : bool Do **not** skip symbols that fall outside the frame boundaries