Logo
dev

Getting Started

  • Installing
  • Intro to PyGMT

Project Overview

  • Overview
  • PyGMT Ecosystem
  • Presentations
  • Citing PyGMT

User Guide

  • Tutorials
  • Gallery
  • Projections
  • External Resources

Reference Guide

  • API Reference
    • Plotting
      • Figure class overview
      • Plotting figure elements
        • pygmt.Figure.basemap
        • pygmt.Figure.choropleth
        • pygmt.Figure.coast
        • pygmt.Figure.colorbar
        • pygmt.Figure.directional_rose
        • pygmt.Figure.hlines
        • pygmt.Figure.inset
        • pygmt.Figure.legend
        • pygmt.Figure.logo
        • pygmt.Figure.magnetic_rose
        • pygmt.Figure.paragraph
        • pygmt.Figure.pygmtlogo
        • pygmt.Figure.scalebar
        • pygmt.Figure.solar
        • pygmt.Figure.text
        • pygmt.Figure.timestamp
        • pygmt.Figure.vlines
      • Plotting tabular data
      • Plotting raster data
      • Configuring layout
      • Saving and displaying the figure
      • Configuring the display settings
      • Color palette table generation
    • Data Processing
    • GMT Defaults
    • Metadata
    • xarray Integration
    • Class-style Parameters
    • Enums
    • Miscellaneous
    • Datasets
    • Exceptions
    • GMT C API
  • Technical Reference
  • Minimum Supported Versions
  • Changelog

Development

  • Contributors Guide
  • Maintainers Guide
  • PyGMT Team

Getting help

  • GMT Forum
  • Bug Report (GitHub)
  • Code of Conduct
PyGMT
  • API Reference
  • pygmt.Figure
  • pygmt.Figure.pygmtlogo
  • Improve this page

pygmt.Figure.pygmtlogo

Figure.pygmtlogo(shape='circle', theme='light', wordmark='none', color=True, width=None, height=None, position=None, box=False, verbose=False, panel=False, perspective=False, transparency=None)

Plot the PyGMT logo.

PyGMT logo

The design of the logo is kindly provided by @sfrooti and consists of a visual and the wordmark “PyGMT”. The outer shape (in Python blue) represents Earth, with compass lines (in Python yellow) surrounding the letters “GMT” (in the red used for the GMT logo). The letter “T” aligns with the needle of the compass. By default, the PyGMT logo is plotted without wordmark, with a size of 2 centimeters for the circular version of the icon.

Parameters:
  • shape (Literal['circle', 'hexagon'], default: 'circle') – Shape of the visual logo. Use "circle" for a circle shape [Default] or "hexagon" for a hexagon shape.

  • theme (Literal['light', 'dark'], default: 'light') – Use "light" for light mode (i.e., a white background) [Default] and "dark" for dark mode (i.e., a darkgray background).

  • wordmark (Literal['none', 'horizontal', 'vertical'], default: 'none') –

    Add the wordmark “PyGMT” and adjust its orientation relative to the visual. Valid values are:

    • "none": no wordmark [Default].

    • "horizontal": wordmark at the right side of the visual.

    • "vertical": wordmark below the visual.

  • color (bool, default: True) – True for a color logo, and False for a black and white logo.

  • position (Position | Sequence[float | str] | Literal['TL', 'TC', 'TR', 'ML', 'MC', 'MR', 'BL', 'BC', 'BR'] | None, default: None) –

    Position of the PyGMT logo on the plot. It can be specified in multiple ways:

    • A pygmt.params.Position object to fully control the reference point, anchor point, and offset.

    • A sequence of two values representing the x- and y-coordinates in plot coordinates, e.g., (1, 2) or ("1c", "2c").

    • A 2-character justification code for a position inside the plot, e.g., "TL" for Top Left corner inside the plot.

    If not specified, defaults to the Bottom Left corner of the plot (position (0, 0) with anchor "BL").

  • width (float | str | None, default: None)

  • height (float | str | None, default: None) – Width or height of the PyGMT logo. Since the aspect ratio is fixed, only one of the two can be specified. If not specified, the default size of the visual logo is set to 2 cm.

  • box (Box | bool, default: False) – Draw a background box behind the logo. If set to True, a simple rectangular box is drawn using MAP_FRAME_PEN. To customize the box appearance, pass a pygmt.params.Box object to control style, fill, pen, and other box properties.

  • verbose (Literal['quiet', 'error', 'warning', 'timing', 'info', 'compat', 'debug'] | bool, default: False) – Select verbosity level [Full usage].

  • panel (int | Sequence[int] | bool, default: False) –

    Select a specific subplot panel. Only allowed when used in Figure.subplot mode.

    • True to advance to the next panel in the selected order.

    • index to specify the index of the desired panel.

    • (row, col) to specify the row and column of the desired panel.

    The panel order is determined by the Figure.subplot method. row, col and index all start at 0.

  • perspective (float | Sequence[float] | str | bool, default: False) – Select perspective view and set the viewpoint. Pass a pygmt.params.Perspective object to control the viewpoint. Alternatively, set perspective=True to reuse the perspective setting from the previous plotting method. It also accepts following shortcuts: a single value azimuth, a sequence of two values (azimuth, elevation), or a sequence of three values (azimuth, elevation, level). Refer to pygmt.params.Perspective for meaning of the parameters.

  • transparency (float | None, default: None) – Set transparency level, in [0-100] percent range [Default is 0, i.e., opaque]. Only visible when PDF or raster format output is selected. Only the PNG format selection adds a transparency layer in the image (for further processing).

See also

pygmt.Figure.logo

Plot the GMT logo.

Examples

>>> import pygmt

The simplest way to plot the PyGMT logo is to call the method without any arguments.

>>> fig = pygmt.Figure()
>>> fig.pygmtlogo()
>>> fig.show()

Plot the PyGMT logo with the wordmark “PyGMT” with a height of 1 centimeter at the right side in the Bottom Right corner on an existing basemap:

>>> fig = pygmt.Figure()
>>> fig.basemap(region=[-90, -70, 0, 20], projection="M10c", frame=True)
>>> fig.pygmtlogo(wordmark="horizontal", position="BR", height="1c")
>>> fig.show()

Examples using pygmt.Figure.pygmtlogo

PyGMT logo

PyGMT logo
Previous Next

© Copyright 2017-2026, The PyGMT Developers. Revision v999.1000.0.dev149+unknown.ga6d45acb8.d20260829. Last updated on Aug 29, 2026.

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.