Plots (metpy.plots)#

Contains functionality for making meteorological plots.

Functions

read_colortable(fobj)

Read colortable information from a file.

wx_code_to_numeric(codes)

Determine the numeric weather symbol value from METAR code text.

add_metpy_logo(fig[, x, y, zorder, size])

Add the MetPy logo to a figure.

add_timestamp(ax[, time, x, y, ha, ...])

Add a timestamp to a plot.

add_unidata_logo(fig[, x, y, zorder, size])

Add the Unidata logo to a figure.

convert_gempak_color(c[, style])

Convert GEMPAK color numbers into corresponding Matplotlib colors.

Classes

PanelContainer(**kwargs)

Collects panels and set complete figure related settings (e.g., size).

MapPanel(**kwargs)

Set figure related elements for an individual panel.

Plots2D(**kwargs)

The highest level class related to plotting 2D data.

PlotScalar(**kwargs)

Defines the common elements of 2D scalar plots for single scalar value fields.

ImagePlot(**kwargs)

Make raster image using imshow for satellite or colored image.

ContourPlot(**kwargs)

Make contour plots by defining specific traits.

FilledContourPlot(**kwargs)

Make color-filled contours plots by defining appropriate traits.

RasterPlot(**kwargs)

Make raster plots by defining relevant traits.

PlotVector(**kwargs)

Defines common elements for 2D vector plots.

BarbPlot(**kwargs)

Make plots of wind barbs on a map with traits to refine the look of plotted elements.

ArrowPlot(**kwargs)

Make plots of wind barbs on a map with traits to refine the look of plotted elements.

PlotObs(**kwargs)

The highest level class related to plotting observed surface and upperair data.

PlotGeometry(**kwargs)

Plot collections of Shapely objects and customize their appearance.

PlotSurfaceAnalysis(**kwargs)

Plot Surface Analysis Features.

ScallopedStroke([offset, spacing, side, length])

A line-based PathEffect which draws a path with a scalloped style.

ColdFront([color])

Draw a path as a cold front, with (default blue) pips/triangles along the path.

ColdFrontogenesis([color])

Draw a path as a strengthening cold.

ColdFrontolysis([color])

Draw a path as a weakening cold front.

Dryline([color, spacing, filled])

Draw a path as a dryline with (default brown) scallops along the path.

WarmFront([color])

Draw a path as a warm front with (default red) scallops along the path.

WarmFrontogenesis([color])

Draw a path as a strengthening warm front.

WarmFrontolysis([color])

Draw a path as a weakening warm front.

OccludedFront([color])

Draw an occluded front with (default purple) pips and scallops along the path.

OccludedFrontogenesis([color])

Draw a strengthening occluded front.

OccludedFrontolysis([color])

Draw a weakening occluded front.

RidgeAxis([color, spacing, length])

A line-based PathEffect which draws a path with a sawtooth-wave style.

Squall([color, spacing])

Squall line path effect.

StationaryFront([colors])

Draw a stationary front as alternating cold and warm front segments.

StationaryFrontogenesis([colors])

Draw a strengthening stationary front.

StationaryFrontolysis([colors])

Draw a weakening stationary front..

SkewT([fig, rotation, subplot, rect, aspect])

Make Skew-T log-P plots of data.

Hodograph([ax, component_range])

Make a hodograph of wind data.

StationPlot(ax, x, y[, fontsize, spacing, ...])

Make a standard meteorological station plot.

StationPlotLayout

Make a layout to encapsulate plotting using StationPlot.