From 45b80444021fffc4557c511be4238b5525e382d0 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Mon, 17 Mar 2025 16:59:34 +0100 Subject: [PATCH 1/5] Adjust file name and title --- examples/gallery/embellishments/{logo.py => gmt_logo.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename examples/gallery/embellishments/{logo.py => gmt_logo.py} (95%) diff --git a/examples/gallery/embellishments/logo.py b/examples/gallery/embellishments/gmt_logo.py similarity index 95% rename from examples/gallery/embellishments/logo.py rename to examples/gallery/embellishments/gmt_logo.py index fdddb817463..012627757e1 100644 --- a/examples/gallery/embellishments/logo.py +++ b/examples/gallery/embellishments/gmt_logo.py @@ -1,6 +1,6 @@ """ -Logo -==== +GMT logo +======== The :meth:`pygmt.Figure.logo` method allows to place the GMT logo on a map. """ From ca93fc3fd81a2c555b95acc928ea84aa2744ec3c Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Mon, 17 Mar 2025 17:02:44 +0100 Subject: [PATCH 2/5] Rewrap to 88 chars --- examples/gallery/embellishments/gmt_logo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/gallery/embellishments/gmt_logo.py b/examples/gallery/embellishments/gmt_logo.py index 012627757e1..231969c2079 100644 --- a/examples/gallery/embellishments/gmt_logo.py +++ b/examples/gallery/embellishments/gmt_logo.py @@ -11,9 +11,8 @@ fig = pygmt.Figure() fig.basemap(region=[0, 10, 0, 2], projection="X6c", frame=True) -# Add the GMT logo in the Top Right (TR) corner of the current map, -# scaled up to be 3 cm wide and offset by 0.3 cm in x direction -# and 0.6 cm in y direction. +# Add the GMT logo in the Top Right (TR) corner of the current map, scaled up to be 3 cm +# wide and offset by 0.3 cm in x direction and 0.6 cm in y direction. fig.logo(position="jTR+o0.3c/0.6c+w3c") fig.show() From 5729b4e66fa3966b69f662cd5314451b82a72261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= <94163266+yvonnefroehlich@users.noreply.github.com> Date: Wed, 19 Mar 2025 10:09:26 +0100 Subject: [PATCH 3/5] Update title back Co-authored-by: Dongdong Tian --- examples/gallery/embellishments/gmt_logo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/gmt_logo.py b/examples/gallery/embellishments/gmt_logo.py index 231969c2079..5497444206e 100644 --- a/examples/gallery/embellishments/gmt_logo.py +++ b/examples/gallery/embellishments/gmt_logo.py @@ -2,7 +2,7 @@ GMT logo ======== -The :meth:`pygmt.Figure.logo` method allows to place the GMT logo on a map. +The :meth:`pygmt.Figure.logo` method allows to place the GMT logo on a figure. """ # %% From 9900fe3824aff76029c78bc671e6b147a4dc6e42 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 19 Mar 2025 10:14:15 +0100 Subject: [PATCH 4/5] Generalize formulation using 'figure' --- examples/gallery/embellishments/gmt_logo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gallery/embellishments/gmt_logo.py b/examples/gallery/embellishments/gmt_logo.py index 5497444206e..27ef9b763b7 100644 --- a/examples/gallery/embellishments/gmt_logo.py +++ b/examples/gallery/embellishments/gmt_logo.py @@ -11,8 +11,8 @@ fig = pygmt.Figure() fig.basemap(region=[0, 10, 0, 2], projection="X6c", frame=True) -# Add the GMT logo in the Top Right (TR) corner of the current map, scaled up to be 3 cm -# wide and offset by 0.3 cm in x direction and 0.6 cm in y direction. +# Add the GMT logo in the Top Right (TR) corner of the current figure, scaled up to be 3 +# centimeters wide and offset by 0.3 cm in x direction and 0.6 cm in y direction. fig.logo(position="jTR+o0.3c/0.6c+w3c") fig.show() From fda1e486e5e80714edb1f3e80ab860ad48062a26 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 19 Mar 2025 10:39:16 +0100 Subject: [PATCH 5/5] Change 'figure' to 'plot' --- examples/gallery/embellishments/gmt_logo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gallery/embellishments/gmt_logo.py b/examples/gallery/embellishments/gmt_logo.py index 27ef9b763b7..7689dc69fe0 100644 --- a/examples/gallery/embellishments/gmt_logo.py +++ b/examples/gallery/embellishments/gmt_logo.py @@ -11,7 +11,7 @@ fig = pygmt.Figure() fig.basemap(region=[0, 10, 0, 2], projection="X6c", frame=True) -# Add the GMT logo in the Top Right (TR) corner of the current figure, scaled up to be 3 +# Add the GMT logo in the Top Right (TR) corner of the current plot, scaled up to be 3 # centimeters wide and offset by 0.3 cm in x direction and 0.6 cm in y direction. fig.logo(position="jTR+o0.3c/0.6c+w3c")