PyGMT

dev

Getting Started

  • Overview
  • Installing
  • Making your first figure
  • Gallery
    • Maps and map elements
    • Lines and vectors
    • Symbols and markers
    • Images, contours, and fields
    • 3D Plots
    • Seismology and geodesy
    • Base maps
    • Plot embellishments
      • Colorbar
      • Inset
      • Inset map showing a rectangular region
      • Legend
      • Logo

User Guide

  • Frames, ticks, titles, and labels
  • Projections
  • Coastlines and borders
  • Set the region
  • Plotting data points
  • Plot lines
  • Plotting text
  • Creating a map with contour lines
  • Plotting Earth relief
  • Creating a 3D perspective image
  • Adding an inset to the figure
  • Making subplots
  • Configuring PyGMT defaults

Reference documentation

  • API Reference
  • Changelog

Getting help and contributing

  • Contributing
  • Code of Conduct
  • License
  • Contact
  • Source Code
PyGMT
  • Docs »
  • Gallery »
  • Logo
  • Improve this page

Note

Click here to download the full example code

LogoΒΆ

The pygmt.Figure.logo method allows to place the GMT logo on a map.

logo

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 Top Right 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()

Total running time of the script: ( 0 minutes 1.236 seconds)

Download Python source code: logo.py

Download Jupyter notebook: logo.ipynb

Gallery generated by Sphinx-Gallery

Next Previous

© Copyright 2017-2021, The PyGMT Developers. Revision b9c31a0.

Built with Sphinx using a theme provided by Read the Docs

This website uses Google Analytics to gather usage statistics. However, it does not use cookies or track you across different websites. Page view data are used to help us improve the site and provide an estimate of the software usage.