lair.plotter#

This module provides utility functions for plotting data.

Module Attributes

SEASON_COLORS

Season colors (ColorBrewer Dark2) used for all season-keyed plots.

Functions

NCL_cmap

Generate matplotlib colormap from NCL color table.

create_polar_ax

Create a polar axis with North at the top.

diurnalPlot

Plot the diurnal cycle of data.

format_radial_axis

Format radial axis of polar plot.

log10formatter

Format ticks to log 10 format with deci number of decimals.

polarFreq

Plot the contoured frequency of the data.

polarPlot

Plot polar contour of data.

seasonalPlot

Plot the seasonal cycle of data by year.

terrain_cmap

Matplotlib terrain cmap.

truncate_colormap

Truncate matplotlib colormaps using min and max vals from 0 to 1, and then linearly build a new colormap

windvectorPlot

Plot wind vectors.

Classes

HandlerDashedLines

Custom Handler for LineCollection instances.