Note
Click here to download the full example code
LogoΒΆ
The pygmt.Figure.logo
method allows to place the GMT logo on a map.
For more advanced options, see the full option list at https://docs.generic-mapping-tools.org/latest/logo.html.
Out:
<IPython.core.display.Image object>
import pygmt
fig = pygmt.Figure()
fig.basemap(region=[0, 10, 0, 2], projection="X6c", frame=True)
# add the GMT logo in the upper right corner of the current map,
# scaled up to be 3 cm wide and offset by 0.3 cm from the border
# scaled up to be 3 cm wide and offset by 0.3 cm from the vertical border
# and 0.6 cm from the horizontal border
fig.logo(position="jTR+o0.3c/0.6c+w3c")
fig.show()
Total running time of the script: ( 0 minutes 0.585 seconds)