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
Color land and water
Highlight country, continent and state polygons
Highlight country, continent and state polygons
Political boundaries
Shorelines
Tile maps
Lines and vectors
Cartesian, circular, and geographic vectors
Cartesian, circular, and geographic vectors
Connection lines
Decorated lines
Envelope
Generate points along great circles
Generate points along great circles
Line colors with a custom CPT
Line fronts
Line segment caps and joints
Line styles
Quoted lines
Roads
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
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 and radiance
Calculating grid gradient with custom azimuth and normalize parameters
Calculating grid gradient with custom azimuth and normalize parameters
Clipping grid values
Contours
Create 'wet-dry' mask grid
Cross-section along a transect
Cross-section along a transect
Images on figures
RGB image
Sampling along tracks
3D Plots
3-D scatter plots
Plotting a surface
Seismology and geodesy
Focal mechanisms
Velocity arrows and confidence ellipses
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 line and twilights
Day-night terminator line and twilights
Inset
Inset map showing a rectangular region
Inset map showing a rectangular region
Legend
Logo
Multiple colormaps
Scale bar
Timestamp