From 5aa73ec48e31df1beb51ceb21801c229a2995fee Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 28 Apr 2026 19:37:32 +0800 Subject: [PATCH 1/2] Figure.logo: Add an inline example to plot the GMT logo without any arguments --- pygmt/src/logo.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pygmt/src/logo.py b/pygmt/src/logo.py index 9fdaea69fca..1b97a4b312b 100644 --- a/pygmt/src/logo.py +++ b/pygmt/src/logo.py @@ -100,6 +100,16 @@ def logo( # noqa: PLR0913 Examples -------- >>> import pygmt + + The simplest way to plot the GMT logo is to just call the method without any + parameters. + + >>> fig = pygmt.Figure() + >>> fig.logo() + >>> fig.show() + + To plot the GMT logo at the Top Right corner on a existing basemap: + >>> fig = pygmt.Figure() >>> fig.basemap(region=[-90, -70, 0, 20], projection="M10c", frame=True) >>> fig.logo(position="TR", width="3c") From 1a7eb69b3b46904bacece348058ec5f237427926 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 29 Apr 2026 00:08:17 +0800 Subject: [PATCH 2/2] Apply suggestions from code review 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> --- pygmt/src/logo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/logo.py b/pygmt/src/logo.py index 1b97a4b312b..dfbbf522020 100644 --- a/pygmt/src/logo.py +++ b/pygmt/src/logo.py @@ -102,13 +102,13 @@ def logo( # noqa: PLR0913 >>> import pygmt The simplest way to plot the GMT logo is to just call the method without any - parameters. + arguments. >>> fig = pygmt.Figure() >>> fig.logo() >>> fig.show() - To plot the GMT logo at the Top Right corner on a existing basemap: + To plot the GMT logo at the Top Right corner on an existing basemap: >>> fig = pygmt.Figure() >>> fig.basemap(region=[-90, -70, 0, 20], projection="M10c", frame=True)