Skip to content

DOC: Rename Gallery example for GMT logo #3856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Logo
====
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.
"""

# %%
Expand All @@ -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 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")

fig.show()