From 1893d9715eaea450fc6ebdb6bfd7652d97c50c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sat, 4 Jul 2026 14:27:20 +0200 Subject: [PATCH 01/22] Add gallery example for PyGMT logo --- examples/gallery/embellishments/pygmtlogo.py | 55 ++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 examples/gallery/embellishments/pygmtlogo.py diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py new file mode 100644 index 00000000000..5630ec00b6c --- /dev/null +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -0,0 +1,55 @@ +""" +PyGMT logo +========== +Beside the GMT logo, there is a separate PyGMT logo which can be plotted and added +to a figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is +kindly provided by `@sfrooti `_ and consists of a visual +and the wordmark "PyGMT". + +The PyGMT logo is available in circle and hexagon shapes. It can be plotted using colors +of Python (blue and yellow) and GMT (red) or in black and white as well as in light or +dark mode. The wordmark "PyGMT" can be added on the right or bottom sides of the visual. +""" + +# %% +import pygmt + +# %% +# By default + +fig = pygmt.Figure() +fig.pygmtlogo() +fig.show() + + +# %% +# ``theme``, ``color``, ``shape`` + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -5, 5], projection="10c/10c", frame=True) + +fig.pygmtlogo(theme="dark", position="TL") + +fig.pygmtlogo(color=False, position="TR") + +fig.pygmtlogo(theme="dark", color=False, position="BL") + +fig.pygmtlogo(shape="hexagon", position="BR") + +fig.show() + + +# %% +# ``wordamrk`` + +fig = pygmt.Figure() +fig.basemap(region=[-5, 5, -5, 5], projection="10c/10c", frame=True) + +fig.pygmtlogo(wordmark="horizontal", position="ML") + +fig.pygmtlogo(wordmark="vertical", position="MR") + +fig.show() + + +# sphinx_gallery_thumbnail_number = 1 From 7a1880985fb2b012f6e2affa720c9b00a0edb705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sat, 4 Jul 2026 17:01:47 +0200 Subject: [PATCH 02/22] Add comments --- examples/gallery/embellishments/pygmtlogo.py | 24 +++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 5630ec00b6c..4a09d8cb770 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -1,21 +1,21 @@ """ PyGMT logo ========== -Beside the GMT logo, there is a separate PyGMT logo which can be plotted and added -to a figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is -kindly provided by `@sfrooti `_ and consists of a visual -and the wordmark "PyGMT". +Beside the GMT logo, there is a separate PyGMT logo which can be plotted and added to a +figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly +provided by `@sfrooti `_ and consists of a visual and the +wordmark "PyGMT". The PyGMT logo is available in circle and hexagon shapes. It can be plotted using colors of Python (blue and yellow) and GMT (red) or in black and white as well as in light or -dark mode. The wordmark "PyGMT" can be added on the right or bottom sides of the visual. +dark mode. The wordmark can be added on the right side or at the bottom of the visual. """ # %% import pygmt # %% -# By default +# Plot the PyGMT logo without any arguments: fig = pygmt.Figure() fig.pygmtlogo() @@ -23,16 +23,17 @@ # %% -# ``theme``, ``color``, ``shape`` +# Via the ``color``, ``theme``, ``shape`` parameters the appereance of the logo can be +# changed: fig = pygmt.Figure() fig.basemap(region=[-5, 5, -5, 5], projection="10c/10c", frame=True) -fig.pygmtlogo(theme="dark", position="TL") +fig.pygmtlogo(color=False, position="TL") -fig.pygmtlogo(color=False, position="TR") +fig.pygmtlogo(theme="dark", position="TR") -fig.pygmtlogo(theme="dark", color=False, position="BL") +fig.pygmtlogo(color=False, theme="dark", position="BL") fig.pygmtlogo(shape="hexagon", position="BR") @@ -40,7 +41,8 @@ # %% -# ``wordamrk`` +# Via the ``wordamrk`` parameter the text "PyGMT" can be added on the right side +# or at the bottom of the visual: fig = pygmt.Figure() fig.basemap(region=[-5, 5, -5, 5], projection="10c/10c", frame=True) From 3beb24a61c2f54cddb720204c98aa9287f9090fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sat, 4 Jul 2026 19:38:21 +0200 Subject: [PATCH 03/22] Fix projection argument --- examples/gallery/embellishments/pygmtlogo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 4a09d8cb770..d4e5e2e6ca5 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -27,7 +27,7 @@ # changed: fig = pygmt.Figure() -fig.basemap(region=[-5, 5, -5, 5], projection="10c/10c", frame=True) +fig.basemap(region=[-5, 5, -5, 5], projection="X10c/10c", frame=True) fig.pygmtlogo(color=False, position="TL") @@ -45,7 +45,7 @@ # or at the bottom of the visual: fig = pygmt.Figure() -fig.basemap(region=[-5, 5, -5, 5], projection="10c/10c", frame=True) +fig.basemap(region=[-5, 5, -5, 5], projection="X10c/10c", frame=True) fig.pygmtlogo(wordmark="horizontal", position="ML") From 9e1529ed61280eae8536186307f65b81a548c236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sat, 4 Jul 2026 20:25:21 +0200 Subject: [PATCH 04/22] Adjust region, projection and background color --- examples/gallery/embellishments/pygmtlogo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index d4e5e2e6ca5..944506fb1b4 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -27,7 +27,7 @@ # changed: fig = pygmt.Figure() -fig.basemap(region=[-5, 5, -5, 5], projection="X10c/10c", frame=True) +fig.basemap(region=[-1, 1, -1, 1], projection="X5c/5c", frame="+ggray50") fig.pygmtlogo(color=False, position="TL") @@ -45,11 +45,11 @@ # or at the bottom of the visual: fig = pygmt.Figure() -fig.basemap(region=[-5, 5, -5, 5], projection="X10c/10c", frame=True) +fig.basemap(region=[-1, 1, -1, 1], projection="X10c/5c", frame="+ggray50") -fig.pygmtlogo(wordmark="horizontal", position="ML") +fig.pygmtlogo(wordmark="horizontal", position="TC") -fig.pygmtlogo(wordmark="vertical", position="MR") +fig.pygmtlogo(theme="dark", wordmark="vertical", position="BC") fig.show() From 49bfc611a5176cfe7d6ae6140ce4c465e2c707d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sat, 4 Jul 2026 20:52:28 +0200 Subject: [PATCH 05/22] Adjust size and background color --- examples/gallery/embellishments/pygmtlogo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 944506fb1b4..e0b5874ca48 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -27,7 +27,7 @@ # changed: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X5c/5c", frame="+ggray50") +fig.basemap(region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame="+ggray60") fig.pygmtlogo(color=False, position="TL") @@ -45,7 +45,7 @@ # or at the bottom of the visual: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X10c/5c", frame="+ggray50") +fig.basemap(region=[-1, 1, -1, 1], projection="X10c/5c", frame="+ggray60") fig.pygmtlogo(wordmark="horizontal", position="TC") From 624be9de9fd3e182f209af93053b33c882e45e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sun, 5 Jul 2026 11:43:22 +0200 Subject: [PATCH 06/22] Use 'width' and 'height' parameters --- examples/gallery/embellishments/pygmtlogo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index e0b5874ca48..0964da05683 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -47,9 +47,9 @@ fig = pygmt.Figure() fig.basemap(region=[-1, 1, -1, 1], projection="X10c/5c", frame="+ggray60") -fig.pygmtlogo(wordmark="horizontal", position="TC") +fig.pygmtlogo(wordmark="horizontal", position="TC", width="6c") -fig.pygmtlogo(theme="dark", wordmark="vertical", position="BC") +fig.pygmtlogo(theme="dark", wordmark="vertical", position="BC", height="3c") fig.show() From 6f29d3d2396cff15fa55a81e9c832ad7c4908efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sun, 5 Jul 2026 11:43:51 +0200 Subject: [PATCH 07/22] Adjust background color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com> --- examples/gallery/embellishments/pygmtlogo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 0964da05683..518939ad89d 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -27,7 +27,7 @@ # changed: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame="+ggray60") +fig.basemap(region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame="+g180/199/231") fig.pygmtlogo(color=False, position="TL") @@ -45,7 +45,7 @@ # or at the bottom of the visual: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X10c/5c", frame="+ggray60") +fig.basemap(region=[-1, 1, -1, 1], projection="X7c/5c", frame="+g180/199/231") fig.pygmtlogo(wordmark="horizontal", position="TC", width="6c") From 0829fcf8b38894edf826e5d344ecf58883944fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sun, 5 Jul 2026 11:44:28 +0200 Subject: [PATCH 08/22] Change thumbnail image --- examples/gallery/embellishments/pygmtlogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 518939ad89d..bcbf7c3bf47 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -54,4 +54,4 @@ fig.show() -# sphinx_gallery_thumbnail_number = 1 +# sphinx_gallery_thumbnail_number = 3 From d053a1f9abcc97a2db05ed875bda9c5737dbe9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Sun, 5 Jul 2026 12:44:09 +0200 Subject: [PATCH 09/22] Improve intro text --- examples/gallery/embellishments/pygmtlogo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index bcbf7c3bf47..60b2f059f62 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -6,9 +6,10 @@ provided by `@sfrooti `_ and consists of a visual and the wordmark "PyGMT". -The PyGMT logo is available in circle and hexagon shapes. It can be plotted using colors -of Python (blue and yellow) and GMT (red) or in black and white as well as in light or -dark mode. The wordmark can be added on the right side or at the bottom of the visual. +The visual is available in circle and hexagon shapes. It can be plotted using colors +of Python (blue Earth and yellow compass lines) and GMT (red letters GMT) or in black +and white as well as in light or dark mode. The wordmark can be added on the right +side or at the bottom of the visual. """ # %% From cc2c342f8dcae9c32cdcee4ebb3437cea3f0a327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 5 Jul 2026 18:33:51 +0200 Subject: [PATCH 10/22] Use Frame parameter class --- examples/gallery/embellishments/pygmtlogo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 60b2f059f62..baaaed14778 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -14,6 +14,7 @@ # %% import pygmt +from pygmt.params import Frame # %% # Plot the PyGMT logo without any arguments: @@ -28,7 +29,7 @@ # changed: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame="+g180/199/231") +fig.basemap(region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame=Frame(fill="180/199/231")) fig.pygmtlogo(color=False, position="TL") @@ -46,7 +47,7 @@ # or at the bottom of the visual: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X7c/5c", frame="+g180/199/231") +fig.basemap(region=[-1, 1, -1, 1], projection="X7c/5c", frame=Frame(fill="180/199/231")) fig.pygmtlogo(wordmark="horizontal", position="TC", width="6c") From db886f8931847cd74056dc7b90165f7e40810c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 5 Jul 2026 18:57:42 +0200 Subject: [PATCH 11/22] Fix line length --- examples/gallery/embellishments/pygmtlogo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index baaaed14778..f7cfa86ec0d 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -29,7 +29,9 @@ # changed: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame=Frame(fill="180/199/231")) +fig.basemap( + region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame=Frame(fill="180/199/231") +) fig.pygmtlogo(color=False, position="TL") From 3514aeade090ef41627f83502fb71c828d6143ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 5 Jul 2026 19:10:01 +0200 Subject: [PATCH 12/22] Adjust line length --- examples/gallery/embellishments/pygmtlogo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index f7cfa86ec0d..5f79fc78cf2 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -29,9 +29,7 @@ # changed: fig = pygmt.Figure() -fig.basemap( - region=[-1, 1, -1, 1], projection="X4.5c/4.5c", frame=Frame(fill="180/199/231") -) +fig.basemap(region=[-1, 1] * 2, projection="X5c/5c", frame=Frame(fill="180/199/231")) fig.pygmtlogo(color=False, position="TL") @@ -49,7 +47,7 @@ # or at the bottom of the visual: fig = pygmt.Figure() -fig.basemap(region=[-1, 1, -1, 1], projection="X7c/5c", frame=Frame(fill="180/199/231")) +fig.basemap(region=[-1, 1] * 2, projection="X7c/5c", frame=Frame(fill="180/199/231")) fig.pygmtlogo(wordmark="horizontal", position="TC", width="6c") From f475c6856d18b6225044e6d8636eb0a9a4b4c54a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 5 Jul 2026 20:53:49 +0200 Subject: [PATCH 13/22] Improve intro text --- examples/gallery/embellishments/pygmtlogo.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 5f79fc78cf2..86b2088f4e1 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -6,10 +6,11 @@ provided by `@sfrooti `_ and consists of a visual and the wordmark "PyGMT". -The visual is available in circle and hexagon shapes. It can be plotted using colors -of Python (blue Earth and yellow compass lines) and GMT (red letters GMT) or in black -and white as well as in light or dark mode. The wordmark can be added on the right -side or at the bottom of the visual. +The visual logo is available in circle and hexagon shapes. It supports both colored and +monochrome black-and-white palettes, alongside light and dark theme modes, combining to +yield 8 distinct standalone icon variants. Additionally, the visual logo can optionally +include the wordmark "PyGMT"; if enabled, the wordmark can be positioned either to the +right of the icon or beneath it. """ # %% From a03954305ef95025a9d2a4e5ef116849617fa294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 5 Jul 2026 22:16:36 +0200 Subject: [PATCH 14/22] Improve intro text --- examples/gallery/embellishments/pygmtlogo.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 86b2088f4e1..c092091d210 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -3,14 +3,15 @@ ========== Beside the GMT logo, there is a separate PyGMT logo which can be plotted and added to a figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly -provided by `@sfrooti `_ and consists of a visual and the -wordmark "PyGMT". +provided by `@sfrooti `_ and consists of an icon and the +wordmark "PyGMT". The outer shape represents the Earth, with compaslines surronding the +letters "GMT". The visual logo is available in circle and hexagon shapes. It supports both colored and monochrome black-and-white palettes, alongside light and dark theme modes, combining to -yield 8 distinct standalone icon variants. Additionally, the visual logo can optionally -include the wordmark "PyGMT"; if enabled, the wordmark can be positioned either to the -right of the icon or beneath it. +yield eight distinct standalone icon variants. Additionally, the visual logo can +optionally include the wordmark "PyGMT"; if enabled, the wordmark can be positioned +either to the right of the icon or beneath it. """ # %% From d2912945cc55c6ae4370f26183c470e80660fd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 5 Jul 2026 22:47:35 +0200 Subject: [PATCH 15/22] Explain parameter 'width' and 'height' --- examples/gallery/embellishments/pygmtlogo.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index c092091d210..75de5843adc 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -19,7 +19,7 @@ from pygmt.params import Frame # %% -# Plot the PyGMT logo without any arguments: +# Plot the PyGMT logo without any arguments. fig = pygmt.Figure() fig.pygmtlogo() @@ -28,7 +28,7 @@ # %% # Via the ``color``, ``theme``, ``shape`` parameters the appereance of the logo can be -# changed: +# changed. fig = pygmt.Figure() fig.basemap(region=[-1, 1] * 2, projection="X5c/5c", frame=Frame(fill="180/199/231")) @@ -45,8 +45,9 @@ # %% -# Via the ``wordamrk`` parameter the text "PyGMT" can be added on the right side -# or at the bottom of the visual: +# Via the ``wordamrk`` parameter the text "PyGMT" can be added on the right side or at +# the bottom of the visual. Use the ``width`` and ```height`` parameters to adjust the +# size of the logo. fig = pygmt.Figure() fig.basemap(region=[-1, 1] * 2, projection="X7c/5c", frame=Frame(fill="180/199/231")) From c4af57a2ceed1f391800dc5de9d86433611bfefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Mon, 6 Jul 2026 09:00:40 +0200 Subject: [PATCH 16/22] Fix highlighting Co-authored-by: Dongdong Tian --- examples/gallery/embellishments/pygmtlogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 75de5843adc..8b3e468e0f2 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -46,7 +46,7 @@ # %% # Via the ``wordamrk`` parameter the text "PyGMT" can be added on the right side or at -# the bottom of the visual. Use the ``width`` and ```height`` parameters to adjust the +# the bottom of the visual. Use the ``width`` and ``height`` parameters to adjust the # size of the logo. fig = pygmt.Figure() From 4312934ac55b886f2c4812b39654860438111148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Mon, 6 Jul 2026 11:44:57 +0200 Subject: [PATCH 17/22] Adjust word Co-authored-by: Dongdong Tian --- examples/gallery/embellishments/pygmtlogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 8b3e468e0f2..0d3baddb42f 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -9,7 +9,7 @@ The visual logo is available in circle and hexagon shapes. It supports both colored and monochrome black-and-white palettes, alongside light and dark theme modes, combining to -yield eight distinct standalone icon variants. Additionally, the visual logo can +yield eight distinct standalone logo variants. Additionally, the visual logo can optionally include the wordmark "PyGMT"; if enabled, the wordmark can be positioned either to the right of the icon or beneath it. """ From beba8e4f04b00a3c942e82af93cc0e6bd832b8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Mon, 6 Jul 2026 11:46:57 +0200 Subject: [PATCH 18/22] Remove background of desgin idea --- examples/gallery/embellishments/pygmtlogo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 0d3baddb42f..b088df2d04a 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -4,8 +4,7 @@ Beside the GMT logo, there is a separate PyGMT logo which can be plotted and added to a figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly provided by `@sfrooti `_ and consists of an icon and the -wordmark "PyGMT". The outer shape represents the Earth, with compaslines surronding the -letters "GMT". +wordmark "PyGMT". The visual logo is available in circle and hexagon shapes. It supports both colored and monochrome black-and-white palettes, alongside light and dark theme modes, combining to From 9ebd2cb4a7338a3643cd43810889172c936a370b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Mon, 6 Jul 2026 22:43:05 +0200 Subject: [PATCH 19/22] Add links across the gallery examples for the two logos --- examples/gallery/embellishments/gmt_logo.py | 1 + examples/gallery/embellishments/pygmtlogo.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/gmt_logo.py b/examples/gallery/embellishments/gmt_logo.py index 28e55bd89ab..ec81e39fdaa 100644 --- a/examples/gallery/embellishments/gmt_logo.py +++ b/examples/gallery/embellishments/gmt_logo.py @@ -3,6 +3,7 @@ ======== The :meth:`pygmt.Figure.logo` method allows to place the GMT logo on a figure. +For plotting the PyGMT logo, see :doc:`PyGMT logo `. """ # %% diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index b088df2d04a..476e3bd140d 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -1,8 +1,9 @@ """ PyGMT logo ========== -Beside the GMT logo, there is a separate PyGMT logo which can be plotted and added to a -figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly +Beside the GMT logo (see :doc:`GMT logo `.), there is +a specific logo for PyGMT which can be plotted and added to a figure using +:meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly provided by `@sfrooti `_ and consists of an icon and the wordmark "PyGMT". From 027caf141aa0b39365075ff6be415244c01c7958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Mon, 6 Jul 2026 23:02:26 +0200 Subject: [PATCH 20/22] Shorten formulation --- examples/gallery/embellishments/pygmtlogo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 476e3bd140d..8372f9d6fab 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -1,11 +1,11 @@ """ PyGMT logo ========== -Beside the GMT logo (see :doc:`GMT logo `.), there is -a specific logo for PyGMT which can be plotted and added to a figure using -:meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly -provided by `@sfrooti `_ and consists of an icon and the -wordmark "PyGMT". +Beside the :doc:`GMT logo `., there is a specific logo +for PyGMT which can be plotted and added to a figure using +:meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly provided by +`@sfrooti `_ and consists of an icon and the wordmark +"PyGMT". The visual logo is available in circle and hexagon shapes. It supports both colored and monochrome black-and-white palettes, alongside light and dark theme modes, combining to From 1e837388c580795041ce1c15886f21b7a0e9df0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Tue, 7 Jul 2026 07:37:29 +0200 Subject: [PATCH 21/22] Remove period Co-authored-by: Dongdong Tian --- examples/gallery/embellishments/pygmtlogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 8372f9d6fab..3b5cdb1d4da 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -1,7 +1,7 @@ """ PyGMT logo ========== -Beside the :doc:`GMT logo `., there is a specific logo +Beside the :doc:`GMT logo `, there is a specific logo for PyGMT which can be plotted and added to a figure using :meth:`pygmt.Figure.pygmtlogo`. The design of the logo itself is kindly provided by `@sfrooti `_ and consists of an icon and the wordmark From d03d7870451292d54de3dd68845e15f801ff71c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Tue, 7 Jul 2026 07:44:32 +0200 Subject: [PATCH 22/22] Set thumbnail image to first figure --- examples/gallery/embellishments/pygmtlogo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/pygmtlogo.py b/examples/gallery/embellishments/pygmtlogo.py index 3b5cdb1d4da..9622ef03615 100644 --- a/examples/gallery/embellishments/pygmtlogo.py +++ b/examples/gallery/embellishments/pygmtlogo.py @@ -59,4 +59,4 @@ fig.show() -# sphinx_gallery_thumbnail_number = 3 +# sphinx_gallery_thumbnail_number = 1