python_codes.plot_functions.plot_wind_rose#
- plot_wind_rose(theta, U, bins, ax, fig, label=None, boxprops=None, boxloc=(0.5, 0.05), **kwargs)[source]#
Plot a wind rose from one dimensional time series.
- Parameters
theta (array_like) – Wind orientation in the trigonometric convention.
U (array_like) – Wind velocity, same shape as theta.
bins (list) – Velocity bin edges.
ax (matplotlib.axes) – ax of the figure on which the wind rose is plotted.
fig (matplotlib.figure) – figure on which the wind rose is plotted
label (str or None) – if not None, label plotted below the wind rose (default is None).
boxprops (dict) – Text box properties (the default is None).
boxloc (list, tuple) – Text location (x,y), in ax coordinates (the default is (0.5, 0.05)).
**kwargs – Optional parameters passed to
windrose.WindroseAxes.bar
.
- Returns
return the axe on which the wind rose is plotted. Can be used for further modifications.
- Return type
WindroseAxes