lair.plotter#

Plotting helpers.

Diurnal and seasonal cycles (diurnalPlot(), seasonalPlot(), with SEASON_COLORS), polar plots of a value by wind direction and speed (polarPlot(), polarFreq(), windvectorPlot()), and colormaps and tick formats. Maps are in lair.geo.

Attributes

SEASON_COLORS

Season colors (ColorBrewer Dark2) used for all season-keyed plots, such as seasonalPlot(): a color for each of "DJF", "MAM", "JJA" and "SON".

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 a matplotlib colormap to a range of its values.

windvectorPlot

Plot wind vectors.

Classes

HandlerDashedLines

Custom Handler for LineCollection instances.