foxes.utils.TabWindroseAxes.contour(direction, var, **kwargs)

Plot a windrose in linear mode. For each var bins, a line will be draw on the axes, a segment between each sector (center to center). Each line can be formatted (color, width, …) like with standard plot pylab command.

Parameters

direction1D array

directions the wind blows from, North centred

var1D array

values of the variable to compute. Typically the wind speeds.

Other Parameters

nsectorinteger, optional

number of sectors used to compute the windrose table. If not set, nsector=16, then each sector will be 360/16=22.5°, and the resulting computed table will be aligned with the cardinals points.

bins1D array or integer, optional

number of bins, or a sequence of bins variable. If not set, bins=6, then bins=linspace(min(var), max(var), 6)

blowtobool, optional

If True, the windrose will be pi rotated, to show where the wind blow to (useful for pollutant rose).

colorsstring or tuple, optional

one string color (‘k’ or ‘black’), in this case all bins will be plotted in this color; a tuple of matplotlib color args (string, float, rgb, etc), different levels will be plotted in different colors in the order specified.

cmapa cm Colormap instance from matplotlib.cm, optional

if cmap == None and colors == None, a default Colormap is used.

calm_limitfloat, optional

Calm limit for the var parameter. If not None, a centered red circle will be draw for representing the calms occurrences and all data below this value will be removed from the computation.

others kwargs

Any supported argument of matplotlib.pyplot.plot