Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
945183b
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 14, 2025
0aea0b0
Make clean border of shape
yvonnefroehlich Mar 14, 2025
80b9a48
Remove execution permission
yvonnefroehlich Mar 14, 2025
591f724
Subpress temporary show | Add frame 0
yvonnefroehlich Mar 14, 2025
c75397d
Remove execution permission
yvonnefroehlich Mar 14, 2025
1fbb090
Introduce box parameter
yvonnefroehlich Mar 14, 2025
b1d373a
Fix code style | Improve box querry
yvonnefroehlich Mar 14, 2025
39e5ba1
Remove execution permission
yvonnefroehlich Mar 14, 2025
8519275
Update variable name
yvonnefroehlich Mar 14, 2025
71185ee
Remove execution permission
yvonnefroehlich Mar 14, 2025
57d91bd
Convert to function
yvonnefroehlich Mar 14, 2025
93c9f05
Fix code style and add examples
yvonnefroehlich Mar 14, 2025
7cfea09
Code formating
yvonnefroehlich Mar 14, 2025
e9d1798
Remove execution permission
yvonnefroehlich Mar 14, 2025
dab45b9
Update examples
yvonnefroehlich Mar 14, 2025
67b13be
Remove execution permission
yvonnefroehlich Mar 14, 2025
0fe36d3
Remove withe margin |Use box parameter of Figure.image
yvonnefroehlich Mar 14, 2025
5e19702
Follow coding style
yvonnefroehlich Mar 14, 2025
1d07537
Remove execution permission
yvonnefroehlich Mar 14, 2025
432d6cf
Minor updates | add examples
yvonnefroehlich Mar 14, 2025
725126d
Remove execution permission
yvonnefroehlich Mar 14, 2025
361e3aa
Remove unneeded docs
yvonnefroehlich Mar 14, 2025
9c9d19f
Remove unneeded parameters from examples
yvonnefroehlich Mar 14, 2025
9f1e812
Remove execution permission
yvonnefroehlich Mar 14, 2025
789d82e
Improve names of parameters
yvonnefroehlich Mar 14, 2025
b38edf9
Remove execution permission
yvonnefroehlich Mar 14, 2025
c8c7f79
Update parameter list explanaition
yvonnefroehlich Mar 14, 2025
ff04635
Remove execusion permission
yvonnefroehlich Mar 14, 2025
32c5341
Fix typo
yvonnefroehlich Mar 14, 2025
b079fd9
Fix rst syntax
yvonnefroehlich Mar 15, 2025
90a2890
Use variables for colors
yvonnefroehlich Mar 15, 2025
4c6013e
Introduce transpareny for wordmark
yvonnefroehlich Mar 15, 2025
f8ac7c0
Follow code style
yvonnefroehlich Mar 15, 2025
bdb6f14
Adjustments for tranparency for wordmark
yvonnefroehlich Mar 15, 2025
7416979
Remove execution permission
yvonnefroehlich Mar 15, 2025
ebdf4f2
Adjust example
yvonnefroehlich Mar 15, 2025
6d01ec1
Remove execution permission
yvonnefroehlich Mar 15, 2025
a60a88c
Add comment as reminder
yvonnefroehlich Mar 15, 2025
ec4583c
Remove execution permission
yvonnefroehlich Mar 15, 2025
4891de2
Combine box and bg_transparent to box parameter of Figure.image
yvonnefroehlich Mar 15, 2025
e3da0ce
Simplify code
yvonnefroehlich Mar 15, 2025
78872b4
Adjust outline
yvonnefroehlich Mar 15, 2025
470ed44
Try to use GMT color setting for font
yvonnefroehlich Mar 15, 2025
e77dde2
Remove unneeded code
yvonnefroehlich Mar 15, 2025
126a574
Remove execution permission
yvonnefroehlich Mar 15, 2025
5de8969
Polish code
yvonnefroehlich Mar 15, 2025
77c12f8
Follow code style
yvonnefroehlich Mar 15, 2025
76e1dac
Remove execution permission
yvonnefroehlich Mar 15, 2025
366970a
Use specific variable names
yvonnefroehlich Mar 15, 2025
43d6d92
Remove execution permission
yvonnefroehlich Mar 15, 2025
e401fea
Do rotation directly not eps export
yvonnefroehlich Mar 15, 2025
cbe6035
Remove execution permission
yvonnefroehlich Mar 15, 2025
e060bc7
Make full transparent
yvonnefroehlich Mar 15, 2025
d46d5e0
Use dicts
yvonnefroehlich Mar 15, 2025
cd38f53
Remove execution permission
yvonnefroehlich Mar 15, 2025
e8dd40c
Suppress code style fails because of to many statements PLR0915
yvonnefroehlich Mar 15, 2025
87dd5b7
Remove execution permission
yvonnefroehlich Mar 15, 2025
5f492d7
Add size of logo | add GMT in example | Polish code
yvonnefroehlich Mar 15, 2025
b8150a5
Follow code style
yvonnefroehlich Mar 15, 2025
8355de0
Plot yellow lines via loop over list
yvonnefroehlich Mar 15, 2025
7d382b0
Remove execution permission
yvonnefroehlich Mar 15, 2025
ff512cc
Plot red lines for letter M via loop over list
yvonnefroehlich Mar 15, 2025
c072743
Adjust variable name
yvonnefroehlich Mar 15, 2025
5962954
Use dict
yvonnefroehlich Mar 15, 2025
5175a28
Reduce number of branches to be not > 12
yvonnefroehlich Mar 15, 2025
3768a06
Remove execution permission
yvonnefroehlich Mar 15, 2025
433f8e4
Improve comments
yvonnefroehlich Mar 15, 2025
479f4a2
Remove execution permission
yvonnefroehlich Mar 15, 2025
4f9ae6f
Do not rotate initial basemap -> no need of resize in savefig
yvonnefroehlich Mar 15, 2025
08c7e56
Follow code style
yvonnefroehlich Mar 15, 2025
8cb9079
Remove execution permission
yvonnefroehlich Mar 15, 2025
d2f479d
No temp eps file for wordmark
yvonnefroehlich Mar 15, 2025
f304d49
Adjust position and font size for wordmark based on orientation
yvonnefroehlich Mar 15, 2025
f7a84c5
Follow code style
yvonnefroehlich Mar 15, 2025
b18f816
Comment code
yvonnefroehlich Mar 15, 2025
5ff52a8
Remove execution permission
yvonnefroehlich Mar 15, 2025
9297ac5
Adjust position of wordmark
yvonnefroehlich Mar 15, 2025
50e361b
Remove execution permission
yvonnefroehlich Mar 15, 2025
09471e8
Create pygmtlogo.py in src and move code
yvonnefroehlich Mar 16, 2025
0a35459
Update __init__.py
yvonnefroehlich Mar 16, 2025
b4259ad
Update figure.py
yvonnefroehlich Mar 16, 2025
06fbfbd
Update gallery exampel
yvonnefroehlich Mar 16, 2025
c9c9d75
Add Docstrings
yvonnefroehlich Mar 16, 2025
efff204
Fix import in Gallery example
yvonnefroehlich Mar 16, 2025
7779832
Update index
yvonnefroehlich Mar 16, 2025
79500dd
Update gallery example
yvonnefroehlich Mar 16, 2025
7f9d57e
Update imports
yvonnefroehlich Mar 16, 2025
2132e5e
Add tests
yvonnefroehlich Mar 16, 2025
438a100
Follow code style
yvonnefroehlich Mar 16, 2025
cb854e3
Update docs
yvonnefroehlich Mar 16, 2025
3d40b6a
Remove exectuion permission
yvonnefroehlich Mar 16, 2025
d81c077
Remove exection permission
yvonnefroehlich Mar 16, 2025
2696234
Remove execution permission
yvonnefroehlich Mar 16, 2025
c9262cc
Update docstrings
yvonnefroehlich Mar 16, 2025
5999c51
Follow rules for variable names and use no space between consonants
yvonnefroehlich Mar 16, 2025
4121569
Reduce galler example
yvonnefroehlich Mar 16, 2025
16eb3dc
Expand tests
yvonnefroehlich Mar 16, 2025
6d71dc3
Set box default to None
yvonnefroehlich Mar 17, 2025
e8c693e
Plot without setting up basemap
yvonnefroehlich Mar 17, 2025
dcc38e1
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 17, 2025
1a2ca98
Add more parameters
yvonnefroehlich Mar 17, 2025
d716bd5
Exclude PLR0913
yvonnefroehlich Mar 17, 2025
59dff81
Update tests
yvonnefroehlich Mar 17, 2025
d35c445
Use default position=Non
yvonnefroehlich Mar 18, 2025
13306c8
Remove blank line
yvonnefroehlich Mar 18, 2025
78ea05a
Move function create_logo out of function pygmtlogo
yvonnefroehlich Mar 18, 2025
7910e05
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 18, 2025
6ec39e7
Adjust defaults
yvonnefroehlich Mar 20, 2025
787530d
Update gallery example
yvonnefroehlich Mar 20, 2025
7601e93
Fix typo
yvonnefroehlich Mar 20, 2025
ec13d17
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 20, 2025
1f1bfd9
Adjust gallery example
yvonnefroehlich Mar 21, 2025
1b51c05
Adjust docstring
yvonnefroehlich Mar 21, 2025
ebcf510
Fix typo
yvonnefroehlich Mar 21, 2025
9dbf096
Update docstrings
yvonnefroehlich Mar 26, 2025
b07fe8c
Include 'orientation' parameter into 'wordmark' parameter
yvonnefroehlich Mar 26, 2025
ea9e9e0
Update gallery example
yvonnefroehlich Mar 26, 2025
33a91b1
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 26, 2025
4bb45af
Do not plot invisible basemap at the beginning
yvonnefroehlich Mar 26, 2025
33517d6
Remove un-needed variable
yvonnefroehlich Mar 26, 2025
f7e5cd6
Fix variable name after renaming for coding style
yvonnefroehlich Mar 26, 2025
11b9a49
Remove un-needed comment
yvonnefroehlich Mar 26, 2025
95aee4f
Remove un-needed code block
yvonnefroehlich Mar 26, 2025
d4c17ae
Fix code style
yvonnefroehlich Mar 26, 2025
3cdd4f3
Update intro text of gallery example
yvonnefroehlich Mar 26, 2025
38e15f7
Update docs
yvonnefroehlich Mar 26, 2025
2f6decb
Use fixed angle for rotation -> remove variable
yvonnefroehlich Mar 27, 2025
eaa6e12
Shorten variable names
yvonnefroehlich Mar 27, 2025
85d09d2
Shorten variable names for compass lines
yvonnefroehlich Mar 27, 2025
a994624
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 27, 2025
8116295
Remove un-needed string f
yvonnefroehlich Mar 27, 2025
a50ebfd
Update parameter names
yvonnefroehlich Mar 27, 2025
f0f7fbd
Update gallery example
yvonnefroehlich Mar 27, 2025
6d360d3
Improve docs
yvonnefroehlich Mar 27, 2025
b74eb73
Fit code in one line
yvonnefroehlich Mar 27, 2025
0cec697
Fit code in one line
yvonnefroehlich Mar 27, 2025
eaed88a
Fix comments
yvonnefroehlich Mar 27, 2025
3b8f3d7
Improve comment
yvonnefroehlich Mar 27, 2025
28e79ae
Fix typo
yvonnefroehlich Mar 27, 2025
b766c1b
Fix length
yvonnefroehlich Mar 27, 2025
62a70b8
Remove un-used 'no_clip' parameter
yvonnefroehlich Mar 28, 2025
d01531f
Remove un-needed 'no_clip' parameter
yvonnefroehlich Mar 28, 2025
5086e11
Adjust variable name
yvonnefroehlich Mar 28, 2025
b969a82
Remove un-needed 'no_clip' parameter
yvonnefroehlich Mar 28, 2025
d4effc4
Add 'no_clip' parameter back for hexagon shape
yvonnefroehlich Mar 29, 2025
9732287
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 29, 2025
c78b2f3
Add 'no_clip' parameter back for hexagon shape
yvonnefroehlich Mar 29, 2025
0867085
TEST Add invisible basemap back to also have a square for hexagon shape
yvonnefroehlich Mar 29, 2025
77636b6
Adjust size of basemap in all combination test plot
yvonnefroehlich Mar 29, 2025
229046c
Fix syntax and use maximum line lenght
yvonnefroehlich Mar 29, 2025
9b7d1e9
Fix highlighting
yvonnefroehlich Mar 29, 2025
54f8880
Fix typo in code
yvonnefroehlich Mar 29, 2025
5c8e12f
Fix line length
yvonnefroehlich Mar 29, 2025
5fd657f
Remove invisble basemap
yvonnefroehlich Mar 29, 2025
1ed44b4
Add code for all versions
yvonnefroehlich Mar 29, 2025
92ccf97
Fix seperator
yvonnefroehlich Mar 29, 2025
3296b11
Add more combinations
yvonnefroehlich Mar 29, 2025
858e532
Reorder versions
yvonnefroehlich Mar 29, 2025
9a0f12e
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Mar 31, 2025
e86f164
Improve region and projection arguments
yvonnefroehlich Apr 8, 2025
ed4a782
Adjust pen for arrow
yvonnefroehlich Apr 9, 2025
7fcbc03
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Apr 9, 2025
e0ede2e
First version of polygon for letter M
yvonnefroehlich Apr 10, 2025
b8d9e8c
Get ride of the xshift for letter M
yvonnefroehlich Apr 10, 2025
17c3503
Fine tune x and y values
yvonnefroehlich Apr 10, 2025
80a1487
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Apr 19, 2025
08b3551
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Jun 1, 2025
f396ac0
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Jun 10, 2025
e432f79
Improve comment
yvonnefroehlich Jun 11, 2025
fae8282
Use match case for theme
yvonnefroehlich Jun 11, 2025
e015226
Use case match for shpae
yvonnefroehlich Jun 11, 2025
aee2574
Use full line length
yvonnefroehlich Jun 11, 2025
57fe4a9
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Jun 11, 2025
0eacfa9
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Jul 7, 2025
2a1464a
Save seperation lines
yvonnefroehlich Jul 24, 2025
a2c3da8
Remove seperation lines
yvonnefroehlich Jul 24, 2025
0042ed9
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Jul 24, 2025
c46658d
Fix typo
yvonnefroehlich Aug 6, 2025
f7082c4
Use line length
yvonnefroehlich Aug 6, 2025
ba7f14d
Add perspective parameter for letter M
yvonnefroehlich Aug 6, 2025
1e3bea4
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Aug 6, 2025
faa61dd
Define radii
yvonnefroehlich Aug 6, 2025
b75dbad
Improve code for compass
yvonnefroehlich Aug 6, 2025
5e345e5
Draw letter G via x/y coordinates
yvonnefroehlich Aug 6, 2025
3ffbcdf
Add numpy import
yvonnefroehlich Aug 6, 2025
d49633a
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Aug 19, 2025
76dec8b
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Aug 25, 2025
ff77fe8
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Aug 27, 2025
86ded86
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Sep 4, 2025
b352346
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Sep 6, 2025
97ce3d7
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Sep 24, 2025
97ee7dc
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Oct 3, 2025
a546342
Use basemap and allow adding frame and gridlines for debugging
yvonnefroehlich Nov 3, 2025
4003b3c
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 3, 2025
ec5be4a
Use variables
yvonnefroehlich Nov 3, 2025
0584284
Add vertical line back
yvonnefroehlich Nov 3, 2025
d66c7b6
Use variable
yvonnefroehlich Nov 4, 2025
0949d19
Use variable (leeter G)
yvonnefroehlich Nov 4, 2025
bb3bf23
Use half of the pen thickness of compass lines for
yvonnefroehlich Nov 4, 2025
ee94768
Calculate the position of letter M (sligthly above letter G)
yvonnefroehlich Nov 4, 2025
9072f0d
Add extra vertical compass line above letters "G" and "M"
yvonnefroehlich Nov 4, 2025
a98d25c
Remove not needed return value
yvonnefroehlich Nov 4, 2025
9de8f2e
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 4, 2025
b9de084
Improve plotting the curved horizontal line and the arrow
yvonnefroehlich Nov 4, 2025
4b8e3b6
Add background color
yvonnefroehlich Nov 4, 2025
29910ac
Follow line length limit
yvonnefroehlich Nov 4, 2025
aa6d936
Add perspective parameter for curved horizontal line of letter T
yvonnefroehlich Nov 4, 2025
7cab1bb
Introduce radius for outer limit of curved horizontal line for letter T
yvonnefroehlich Nov 4, 2025
039bad4
Remove frame and circles for orientation
yvonnefroehlich Nov 4, 2025
3e8ae21
Update parameter names in tests
yvonnefroehlich Nov 4, 2025
12be397
Remove tab by white spaces
yvonnefroehlich Nov 4, 2025
5453d16
Remove unneeded comment
yvonnefroehlich Nov 5, 2025
19c0d18
Adjust length of vertical line of compass
yvonnefroehlich Nov 5, 2025
87ba6cf
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 5, 2025
a272a09
Adjust compass line ending at upper right corner of letter M
yvonnefroehlich Nov 5, 2025
4bd8130
Define pen thickness
yvonnefroehlich Nov 6, 2025
193f725
Fix code of orientation circles
yvonnefroehlich Nov 6, 2025
22ecb94
Improve some comments
yvonnefroehlich Nov 7, 2025
ef619bc
Plot only lower part of vertical compass line
yvonnefroehlich Nov 7, 2025
255f7fe
Use a slightly smaller arrow head for letter T
yvonnefroehlich Nov 7, 2025
94f09d7
Remove 'color' from variable names
yvonnefroehlich Nov 7, 2025
7afd52e
Add just radius for arrow
yvonnefroehlich Nov 7, 2025
354e9a2
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 7, 2025
f994c9a
Out-comment fig.show
yvonnefroehlich Nov 7, 2025
f4269bb
Adjust position of horizontal wordmark
yvonnefroehlich Nov 7, 2025
afe3be6
Adjust position of vertical wordmark
yvonnefroehlich Nov 7, 2025
736e60f
Adjust position of wordmark
yvonnefroehlich Nov 7, 2025
0d8b931
Fit hexagon into circles
yvonnefroehlich Nov 7, 2025
fd93480
Correct horizontal compass line to be on top of Earth out line
yvonnefroehlich Nov 7, 2025
5e8bd7e
Reorder parameters in function definition
yvonnefroehlich Nov 8, 2025
c8be168
Reorder docstrings
yvonnefroehlich Nov 8, 2025
2273713
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 8, 2025
1400ab6
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 8, 2025
fdbca4a
Import typing
yvonnefroehlich Nov 9, 2025
8a79a38
Un-commend fig.show
yvonnefroehlich Nov 10, 2025
1b107dc
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 10, 2025
43f79af
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 10, 2025
26c6dce
Use line length
yvonnefroehlich Nov 15, 2025
98bcad8
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 15, 2025
efba97a
Polish
yvonnefroehlich Nov 18, 2025
c430948
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 18, 2025
b7d75e5
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 19, 2025
e0b61c8
Update comment
yvonnefroehlich Nov 19, 2025
64f6c9a
Do not invert wordmark text in gray20, always use gray20
yvonnefroehlich Nov 21, 2025
bb31966
Revert "Do not invert wordmark text in gray20, always use gray20"
yvonnefroehlich Nov 21, 2025
8b1fd34
Reduce examples
yvonnefroehlich Nov 21, 2025
f88f30f
Uncomment fig.show
yvonnefroehlich Nov 21, 2025
b238479
Not help gridlines
yvonnefroehlich Nov 21, 2025
93c8ff5
Adjust background color in example
yvonnefroehlich Nov 21, 2025
b37e24e
Merge branch 'main' into code-pygmt-logo
yvonnefroehlich Nov 23, 2025
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
1 change: 1 addition & 0 deletions doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Plotting map elements
Figure.inset
Figure.legend
Figure.logo
Figure.pygmtlogo
Figure.solar
Figure.text
Figure.timestamp
Expand Down
82 changes: 82 additions & 0 deletions examples/gallery/embellishments/pygmt_logo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
"""
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 <https://github.com/sfrooti>`_ and consists of a visual
and the wordmark "PyGMT".
The logo is available in circle and hexagon shape. 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 at the right side or bottom of the visual.
"""

# %%
# All versions
# modified from
# https://github.com/GenericMappingTools/pygmt/pull/3849#issuecomment-2753372170
# by @seisman

fig = pygmt.Figure()

# Logo without workmark.
fig.basemap(region=[0, 7, 0, 13], projection="x1c", frame=["a1f1g1", "+ggray50"])
for x, y, theme in [(1, 3, "light"), (4, 3, "dark")]:
for color, shape in [
(True, "circle"),
(True, "hexagon"),
(False, "circle"),
(False, "hexagon"),
]:
fig.pygmtlogo(
color=color,
theme=theme,
shape=shape,
wordmark=False,
position=f"g{x}/{y}+jTL+w2c",
)
y += 3 # noqa: PLW2901

fig.shift_origin(xshift=8)

# Logo with vertical wordmark.
fig.basemap(region=[0, 7, 0, 13], projection="x1c", frame=["a1f1g1", "+ggray50"])
for x, y, theme in [(1, 3, "light"), (4, 3, "dark")]:
for color, shape in [
(True, "circle"),
(True, "hexagon"),
(False, "circle"),
(False, "hexagon"),
]:
fig.pygmtlogo(
color=color,
theme=theme,
shape=shape,
wordmark="vertical",
position=f"g{x}/{y}+jTL+w2c",
)
y += 3 # noqa: PLW2901

fig.shift_origin(xshift=8)

# Logo with horizontal wordmark.
fig.basemap(region=[0, 20, 0, 13], projection="x1c", frame=["a1f1g1", "+ggray50"])
for x, y, theme in [(1, 3, "light"), (11, 3, "dark")]:
for color, shape in [
(True, "circle"),
(True, "hexagon"),
(False, "circle"),
(False, "hexagon"),
]:
fig.pygmtlogo(
color=color,
theme=theme,
shape=shape,
wordmark="horizontal",
position=f"g{x}/{y}+jTL+w0/2c",
)
y += 3 # noqa: PLW2901

fig.show(width=1000)


# sphinx_gallery_thumbnail_number = 1
1 change: 1 addition & 0 deletions pygmt/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ def _repr_html_(self) -> str:
plot,
plot3d,
psconvert,
pygmtlogo,
rose,
set_panel,
shift_origin,
Expand Down
1 change: 1 addition & 0 deletions pygmt/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from pygmt.src.plot3d import plot3d
from pygmt.src.project import project
from pygmt.src.psconvert import psconvert
from pygmt.src.pygmtlogo import pygmtlogo
from pygmt.src.rose import rose
from pygmt.src.select import select
from pygmt.src.shift_origin import shift_origin
Expand Down
Loading
Loading