PyGMT

v0.15.0

Getting Started

  • Overview
  • Installing
  • Intro to PyGMT

User Guide

  • Tutorials
  • Gallery
    • Maps and map elements
      • Choropleth map
      • Color land and water
      • Highlight country, continent and state polygons
      • Political boundaries
      • Shorelines
      • Tile maps
    • Lines and vectors
      • Cartesian, circular, and geographic vectors
      • Connection lines
      • Decorated lines
      • Envelope
      • Generate points along great circles
      • GeoPandas: Plotting lines with LineString or MultiLineString geometry
      • Horizontal and vertical lines
      • Line colors with a custom CPT
      • Line fronts
      • Line segment caps and joints
      • Line styles
      • Quoted lines
      • Vector heads and tails
      • Wiggle along tracks
    • Symbols and markers
      • Basic geometric symbols
      • Bit and hachure patterns
      • Color points by categories
      • Custom symbols
      • Datetime inputs
      • Multi-parameter symbols
      • Points
      • Points with varying transparency
      • Scatter plots with a legend
      • Text symbols
      • Vertical or horizontal bars
    • Images, contours, and fields
      • Calculating grid gradient and radiance
      • Calculating grid gradient with custom azimuth and normalize parameters
      • Clipping grid values
      • Contours
      • Create ‘wet-dry’ mask grid
      • Cross-section along a transect
      • Image on a figure
      • RGB image
      • Sampling along tracks
    • 3D Plots
      • 3-D scatter plots
      • Plotting a surface
    • Seismology and geodesy
      • Focal mechanisms
      • Velocity arrows and confidence ellipses
    • Base maps
      • Double Y-axes graph
      • Ternary diagram
    • Histograms
      • Blockmean
      • Histogram
      • Rose diagram
      • Scatter plot with histograms
    • Plot embellishments
      • Colorbar
      • Day-night terminator and twilights
      • GMT logo
      • Inset
      • Inset map showing a rectangular region
      • Legend
      • Multiple colormaps
      • Scale bar
      • Timestamp
  • Projections
  • External Resources

Reference Documentation

  • API Reference
  • 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
  • Gallery
  • Improve this page

Gallery

This gallery contains examples of what PyGMT can do. Click on any example to see the code used to generate it.

Maps and map elements

Choropleth map

Choropleth map

Color land and water

Color land and water

Highlight country, continent and state polygons

Highlight country, continent and state polygons

Political boundaries

Political boundaries

Shorelines

Shorelines

Tile maps

Tile maps

Lines and vectors

Cartesian, circular, and geographic vectors

Cartesian, circular, and geographic vectors

Connection lines

Connection lines

Decorated lines

Decorated lines

Envelope

Envelope

Generate points along great circles

Generate points along great circles

GeoPandas: Plotting lines with LineString or MultiLineString geometry

GeoPandas: Plotting lines with LineString or MultiLineString geometry

Horizontal and vertical lines

Horizontal and vertical lines

Line colors with a custom CPT

Line colors with a custom CPT

Line fronts

Line fronts

Line segment caps and joints

Line segment caps and joints

Line styles

Line styles

Quoted lines

Quoted lines

Vector heads and tails

Vector heads and tails

Wiggle along tracks

Wiggle along tracks

Symbols and markers

Basic geometric symbols

Basic geometric symbols

Bit and hachure patterns

Bit and hachure patterns

Color points by categories

Color points by categories

Custom symbols

Custom symbols

Datetime inputs

Datetime inputs

Multi-parameter symbols

Multi-parameter symbols

Points

Points

Points with varying transparency

Points with varying transparency

Scatter plots with a legend

Scatter plots with a legend

Text symbols

Text symbols

Vertical or horizontal bars

Vertical or horizontal bars

Images, contours, and fields

Calculating grid gradient and radiance

Calculating grid gradient and radiance

Calculating grid gradient with custom azimuth and normalize parameters

Calculating grid gradient with custom azimuth and normalize parameters

Clipping grid values

Clipping grid values

Contours

Contours

Create ‘wet-dry’ mask grid

Create 'wet-dry' mask grid

Cross-section along a transect

Cross-section along a transect

Image on a figure

Image on a figure

RGB image

RGB image

Sampling along tracks

Sampling along tracks

3D Plots

3-D scatter plots

3-D scatter plots

Plotting a surface

Plotting a surface

Seismology and geodesy

Focal mechanisms

Focal mechanisms

Velocity arrows and confidence ellipses

Velocity arrows and confidence ellipses

Base maps

Double Y-axes graph

Double Y-axes graph

Ternary diagram

Ternary diagram

Histograms

Blockmean

Blockmean

Histogram

Histogram

Rose diagram

Rose diagram

Scatter plot with histograms

Scatter plot with histograms

Plot embellishments

Colorbar

Colorbar

Day-night terminator and twilights

Day-night terminator and twilights

GMT logo

GMT logo

Inset

Inset

Inset map showing a rectangular region

Inset map showing a rectangular region

Legend

Legend

Multiple colormaps

Multiple colormaps

Scale bar

Scale bar

Timestamp

Timestamp

Gallery generated by Sphinx-Gallery

Previous Next

© Copyright 2017-2025, The PyGMT Developers. Revision v0.15.0. Last updated on Mar 31, 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.