From 54f387fb3a40a3bd5dbc10f5c7013f900545208d Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 14 Apr 2024 21:58:49 +0200 Subject: [PATCH 1/5] Add alias 'fillcurve' for 'M' of 'plot' --- pygmt/src/plot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index 3206c5c053a..f2544d21c37 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -30,6 +30,7 @@ J="projection", L="close", N="no_clip", + M="fillcurves", R="region", S="style", V="verbose", @@ -150,6 +151,9 @@ def plot( # noqa: PLR0912 {fill} *fill* can be a 1-D array, but it is only valid if using ``x``/``y`` and ``cmap=True`` is also required. + fill_curves : str + [**c**\|\ **s**][**+l**\ *seclabel*][**+g**\ *fill*][**p**\ *pen*][**+r**\ *pen*][**+y**\ [*level*]]. + Fill the middle area between two curves :math:`y_0(x)` and :math:`y_1(x)`. intensity : float, bool, or 1-D array Provide an *intensity* value (nominally in the -1 to +1 range) to modulate the fill color by simulating illumination. If using From 02d01512cbb7e73e40bd6ad410b96024ebbe7731 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 14 Apr 2024 22:02:36 +0200 Subject: [PATCH 2/5] Fix typo --- pygmt/src/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index f2544d21c37..cf836296787 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -151,7 +151,7 @@ def plot( # noqa: PLR0912 {fill} *fill* can be a 1-D array, but it is only valid if using ``x``/``y`` and ``cmap=True`` is also required. - fill_curves : str + fillcurves : str [**c**\|\ **s**][**+l**\ *seclabel*][**+g**\ *fill*][**p**\ *pen*][**+r**\ *pen*][**+y**\ [*level*]]. Fill the middle area between two curves :math:`y_0(x)` and :math:`y_1(x)`. intensity : float, bool, or 1-D array From 85d91b7f1609fce6db7cd82c06422b1982ae657b Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Sun, 14 Apr 2024 22:20:21 +0200 Subject: [PATCH 3/5] Fix line length --- pygmt/src/plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index cf836296787..bd1a2ec5d81 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -152,7 +152,8 @@ def plot( # noqa: PLR0912 *fill* can be a 1-D array, but it is only valid if using ``x``/``y`` and ``cmap=True`` is also required. fillcurves : str - [**c**\|\ **s**][**+l**\ *seclabel*][**+g**\ *fill*][**p**\ *pen*][**+r**\ *pen*][**+y**\ [*level*]]. + [**c**\|\ **s**][**+l**\ *seclabel*][**+g**\ *fill*][**p**\ *pen*] + [**+r**\ *pen*][**+y**\ [*level*]]. Fill the middle area between two curves :math:`y_0(x)` and :math:`y_1(x)`. intensity : float, bool, or 1-D array Provide an *intensity* value (nominally in the -1 to +1 range) to From f1dddcd0093d767657a0c7115b8ccc8b062a32df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Thu, 9 Apr 2026 15:10:17 +0200 Subject: [PATCH 4/5] Use underscore in alias name --- 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 898379b7149..d8e7a9b0a3e 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -29,7 +29,7 @@ I="intensity", L="close", N="no_clip", - M="fillcurves", + M="fill_curves", S="style", W="pen", Z="zvalue", @@ -179,7 +179,7 @@ def plot( # noqa: PLR0912, PLR0913 $fill *fill* can be a 1-D array, but it is only valid if using ``x``/``y`` and ``cmap=True`` is also required. - fillcurves : str + fill_curves : str [**c**\|\ **s**][**+l**\ *seclabel*][**+g**\ *fill*][**p**\ *pen*] [**+r**\ *pen*][**+y**\ [*level*]]. Fill the middle area between two curves :math:`y_0(x)` and :math:`y_1(x)`. From e05991ce647ced577866b64db3e16b6e37bab997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Fri, 10 Apr 2026 10:12:38 +0200 Subject: [PATCH 5/5] Change alias for M of plot to 'fill_between' --- 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 d8e7a9b0a3e..1a67420b321 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -29,7 +29,7 @@ I="intensity", L="close", N="no_clip", - M="fill_curves", + M="fill_between", S="style", W="pen", Z="zvalue", @@ -179,7 +179,7 @@ def plot( # noqa: PLR0912, PLR0913 $fill *fill* can be a 1-D array, but it is only valid if using ``x``/``y`` and ``cmap=True`` is also required. - fill_curves : str + fill_between : str [**c**\|\ **s**][**+l**\ *seclabel*][**+g**\ *fill*][**p**\ *pen*] [**+r**\ *pen*][**+y**\ [*level*]]. Fill the middle area between two curves :math:`y_0(x)` and :math:`y_1(x)`.