From 88a75db00f5936f1093692b4d9b8d95e7d0bd2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Wed, 9 Sep 2026 23:59:47 +0200 Subject: [PATCH 1/5] Add note regarding meca cpt setup bug in GMT 6.7.0 --- examples/tutorials/advanced/focal_mechanisms.py | 5 +++++ pygmt/src/meca.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/examples/tutorials/advanced/focal_mechanisms.py b/examples/tutorials/advanced/focal_mechanisms.py index abd6a090c35..75470d7858f 100644 --- a/examples/tutorials/advanced/focal_mechanisms.py +++ b/examples/tutorials/advanced/focal_mechanisms.py @@ -303,6 +303,11 @@ # ``depth``, e.g., by moment magnitude or hypocentral depth, respectively. Use the # parameter ``cmap`` to pass the desired colormap. Now, the fills of the small circles # indicating the event locations are given by the colormap. +# +# For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` +# is ignored. For details, please see the upstream GMT +# [issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and +# [PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177). fig = pygmt.Figure() fig.coast(region="d", projection="N10c", land="lightgray", frame=True) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index a2c84cd641a..fd3db77e71d 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -337,6 +337,12 @@ def meca( 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 also applies to the fill of the circle defined via ``offset``. + .. note:: + For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as + ``cmap=True`` is ignored. For details, please see the upstream GMT + [issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and + [PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177). + no_clip Do **not** skip symbols that fall outside the frame boundaries [Default is ``False``, i.e., plot symbols inside the frame boundaries only]. From 53fba21f212a76c96780479bcb6adf03f4d6b437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Thu, 10 Sep 2026 00:39:08 +0200 Subject: [PATCH 2/5] Fix note synthax --- pygmt/src/meca.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index fd3db77e71d..d9a0c5486f5 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -337,6 +337,7 @@ def meca( 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 also applies to the fill of the circle defined via ``offset``. + .. note:: For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` is ignored. For details, please see the upstream GMT From dcdd5046e9c2ebcce16d3b15dde85b3dfb21ce84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Thu, 10 Sep 2026 00:50:28 +0200 Subject: [PATCH 3/5] Add note to gallery example --- examples/gallery/seismology/meca.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/gallery/seismology/meca.py b/examples/gallery/seismology/meca.py index e55fdd6d7df..5553c42ff29 100644 --- a/examples/gallery/seismology/meca.py +++ b/examples/gallery/seismology/meca.py @@ -9,6 +9,11 @@ compressive and extensive quadrants can be filled either with a color or a pattern via the ``compression_fill`` and ``extension_fill`` parameters, respectively. Use the ``pen`` parameter to adjust the outline of the beachballs. + +For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` +is ignored. For details, please see the upstream GMT +[issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and +[PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177). """ # %% From d1419f9317184e6beb220c716a3ab4cbc7d366a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Tue, 17 Nov 2026 21:59:53 +0100 Subject: [PATCH 4/5] Fix URL links --- examples/gallery/seismology/meca.py | 4 ++-- examples/tutorials/advanced/focal_mechanisms.py | 4 ++-- pygmt/src/meca.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/gallery/seismology/meca.py b/examples/gallery/seismology/meca.py index 5553c42ff29..1c7635cd637 100644 --- a/examples/gallery/seismology/meca.py +++ b/examples/gallery/seismology/meca.py @@ -12,8 +12,8 @@ For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` is ignored. For details, please see the upstream GMT -[issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and -[PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177). +`issue 9176 `_ and +`PR 9177 `_. """ # %% diff --git a/examples/tutorials/advanced/focal_mechanisms.py b/examples/tutorials/advanced/focal_mechanisms.py index 75470d7858f..70db586f6ff 100644 --- a/examples/tutorials/advanced/focal_mechanisms.py +++ b/examples/tutorials/advanced/focal_mechanisms.py @@ -306,8 +306,8 @@ # # For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` # is ignored. For details, please see the upstream GMT -# [issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and -# [PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177). +# `issue 9176 `_ and +# `PR 9177 `_. fig = pygmt.Figure() fig.coast(region="d", projection="N10c", land="lightgray", frame=True) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index d86a9d69997..63f25f03679 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -343,8 +343,8 @@ def meca( .. note:: For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` is ignored. For details, please see the upstream GMT - [issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and - [PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177). + `issue 9176 `_ and + `PR 9177 `_. no_clip Do **not** skip symbols that fall outside the frame boundaries [Default is From d0fc5f0795f98ddacff79d7a022a211e49a41b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Wed, 18 Nov 2026 15:26:59 +0100 Subject: [PATCH 5/5] Try to format as note --- examples/gallery/seismology/meca.py | 9 +++++---- examples/tutorials/advanced/focal_mechanisms.py | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/gallery/seismology/meca.py b/examples/gallery/seismology/meca.py index 1c7635cd637..4626d6cae74 100644 --- a/examples/gallery/seismology/meca.py +++ b/examples/gallery/seismology/meca.py @@ -10,10 +10,11 @@ the ``compression_fill`` and ``extension_fill`` parameters, respectively. Use the ``pen`` parameter to adjust the outline of the beachballs. -For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` -is ignored. For details, please see the upstream GMT -`issue 9176 `_ and -`PR 9177 `_. +.. note:: + For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` + is ignored. For details, please see the upstream GMT + `issue 9176 `_ and + `PR 9177 `_. """ # %% diff --git a/examples/tutorials/advanced/focal_mechanisms.py b/examples/tutorials/advanced/focal_mechanisms.py index 70db586f6ff..9608ec28e5b 100644 --- a/examples/tutorials/advanced/focal_mechanisms.py +++ b/examples/tutorials/advanced/focal_mechanisms.py @@ -304,10 +304,11 @@ # parameter ``cmap`` to pass the desired colormap. Now, the fills of the small circles # indicating the event locations are given by the colormap. # -# For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` -# is ignored. For details, please see the upstream GMT -# `issue 9176 `_ and -# `PR 9177 `_. +# .. note:: +# For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True`` +# is ignored. For details, please see the upstream GMT +# `issue 9176 `_ and +# `PR 9177 `_. fig = pygmt.Figure() fig.coast(region="d", projection="N10c", land="lightgray", frame=True)