From cfc635282e99ff469124bb0321d1a16b2dd827b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 19 Jul 2026 13:02:24 +0200 Subject: [PATCH 1/5] Add note regarding config after Figure --- pygmt/src/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pygmt/src/config.py b/pygmt/src/config.py index b1a042c3813..d5f6c1cffda 100644 --- a/pygmt/src/config.py +++ b/pygmt/src/config.py @@ -24,6 +24,13 @@ class config: # noqa: N801 Full GMT defaults list at :gmt-docs:`gmt.conf.html`. + .. note:: + + Currently, `pygmt.config` needs to be called **_after_** setting up + the `pygmt.Figure()` instance to affect the figure appearance. This + is relevant for both, global and local changes. For details see the + [GitHub issue comment](https://github.com/GenericMappingTools/pygmt/issues/733#issuecomment-744698150) + .. note:: :gmt-term:`PS_CONVERT` is not supported. From eb5abe7eb3c5b00e8943a460aafabba63dcbf843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 19 Jul 2026 13:54:15 +0200 Subject: [PATCH 2/5] Fix highlighting --- pygmt/src/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygmt/src/config.py b/pygmt/src/config.py index d5f6c1cffda..0967b576565 100644 --- a/pygmt/src/config.py +++ b/pygmt/src/config.py @@ -26,9 +26,9 @@ class config: # noqa: N801 .. note:: - Currently, `pygmt.config` needs to be called **_after_** setting up - the `pygmt.Figure()` instance to affect the figure appearance. This - is relevant for both, global and local changes. For details see the + Currently, :class:`pygmt.config` needs to be called **after** setting + up the :class:`pygmt.Figure` instance to affect the figure appearance. + This is relevant for both, global and local changes. For details see the [GitHub issue comment](https://github.com/GenericMappingTools/pygmt/issues/733#issuecomment-744698150) .. note:: From a7e61f636460365632c67a54e002c0a8586e819b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 19 Jul 2026 14:22:41 +0200 Subject: [PATCH 3/5] Use rst for link --- pygmt/src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/config.py b/pygmt/src/config.py index 0967b576565..08a7c1918d9 100644 --- a/pygmt/src/config.py +++ b/pygmt/src/config.py @@ -29,7 +29,7 @@ class config: # noqa: N801 Currently, :class:`pygmt.config` needs to be called **after** setting up the :class:`pygmt.Figure` instance to affect the figure appearance. This is relevant for both, global and local changes. For details see the - [GitHub issue comment](https://github.com/GenericMappingTools/pygmt/issues/733#issuecomment-744698150) + `GitHub issue comment `__ .. note:: From 7124a4660c9441c3f9026b5db580330e189bc19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 19 Jul 2026 14:30:02 +0200 Subject: [PATCH 4/5] Add period --- pygmt/src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/config.py b/pygmt/src/config.py index 08a7c1918d9..1069c505381 100644 --- a/pygmt/src/config.py +++ b/pygmt/src/config.py @@ -29,7 +29,7 @@ class config: # noqa: N801 Currently, :class:`pygmt.config` needs to be called **after** setting up the :class:`pygmt.Figure` instance to affect the figure appearance. This is relevant for both, global and local changes. For details see the - `GitHub issue comment `__ + `GitHub issue comment `__. .. note:: From 12392b84f723411ba3c68ccab3a44a9f94d3d62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 19 Jul 2026 16:29:21 +0200 Subject: [PATCH 5/5] Improve formulation --- pygmt/src/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pygmt/src/config.py b/pygmt/src/config.py index 1069c505381..54fbacec137 100644 --- a/pygmt/src/config.py +++ b/pygmt/src/config.py @@ -26,9 +26,10 @@ class config: # noqa: N801 .. note:: - Currently, :class:`pygmt.config` needs to be called **after** setting - up the :class:`pygmt.Figure` instance to affect the figure appearance. - This is relevant for both, global and local changes. For details see the + For GMT defaults to adjust the figure appearance, e.g., the font size, + :class:`pygmt.config` needs to be called **after** setting up the + :class:`pygmt.Figure` instance to have an effect. This is relevant for + both, global and local changes. For details see the `GitHub issue comment `__. .. note::