PyGMT

dev

Getting Started

  • Overview
  • Installing
  • Intro to PyGMT

User Guide

  • Tutorials
  • Gallery
  • Projections
  • External Resources

Reference Documentation

  • API Reference
    • Plotting
      • Figure class overview
      • Plotting map elements
        • pygmt.Figure.basemap
        • pygmt.Figure.coast
        • pygmt.Figure.colorbar
        • pygmt.Figure.hlines
        • pygmt.Figure.inset
        • pygmt.Figure.legend
        • pygmt.Figure.logo
        • 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
    • Input/output
    • GMT Defaults
    • Metadata
    • Xarray Integration
    • Class-style Parameters
    • Enums
    • Miscellaneous
    • Datasets
    • Exceptions
    • GMT C API
  • Technical Reference
  • Changelog
  • Minimum Supported Versions
  • Ecosystem

Development

  • PyGMT Team
  • Contributors Guide
  • Maintainers Guide

Getting help and contributing

  • Code of Conduct
  • License
  • Contact
  • Source Code
PyGMT
  • API Reference
  • pygmt.Figure
  • pygmt.Figure.logo
  • Improve this page

pygmt.Figure.logo

Figure.logo(position=None, width=None, height=None, box=False, style='standard', projection=None, region=None, verbose=False, panel=False, perspective=False, transparency=None, **kwargs)

Plot the GMT logo.

GMT logo

By default, the GMT logo is 2 inches wide and 1 inch high and will be positioned relative to the current plot origin.

Full GMT docs at https://docs.generic-mapping-tools.org/6.6/gmtlogo.html.

Aliases:

  • D = position, +w: width, +h: height

  • F = box

  • J = projection

  • R = region

  • S = style

  • V = verbose

  • c = panel

  • p = perspective

  • t = transparency

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

    Position of the GMT 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 lower-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 GMT logo. Since the aspect ratio is fixed, only one of the two can be specified. [Default is 2 inches wide and 1 inch high].

  • 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.

  • style (Literal['standard', 'url', 'no_label'], default: 'standard') –

    Control what is written beneath the map portion of the logo.

    • "standard": The text label “The Generic Mapping Tools”.

    • "no_label": Skip the text label.

    • "url": The URL to the GMT website.

  • projection (str | None, default: None) – projcode[projparams/]width|scale. Select map projection.

  • region (str or list) – xmin/xmax/ymin/ymax[+r][+uunit]. Specify the region of interest.

  • verbose (bool or str) – 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 azimuth and elevation of the viewpoint.

    Accepts a single value or a sequence of two or three values: azimuth, (azimuth, elevation), or (azimuth, elevation, zlevel).

    • azimuth: Azimuth angle of the viewpoint in degrees [Default is 180, i.e., looking from south to north].

    • elevation: Elevation angle of the viewpoint above the horizon [Default is 90, i.e., looking straight down at nadir].

    • zlevel: Z-level at which 2-D elements (e.g., the map frame) are drawn. Only applied when used together with zsize or zscale. [Default is at the bottom of the z-axis].

    Alternatively, set perspective=True to reuse the perspective setting from the previous plotting method, or pass a string following the full GMT syntax for finer control (e.g., adding +w or +v modifiers to select an axis location other than the plot origin). See https://docs.generic-mapping-tools.org/6.6/gmt.html#perspective-full for details.

  • transparency (float) – 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).

Examples using pygmt.Figure.logo

GMT logo

GMT logo
Previous Next

© Copyright 2017-2025, The PyGMT Developers. Revision v999.1000.0.dev50+unknown.gb6999352e.d20251219. Last updated on Dec 18, 2025.

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.