foxes.output.WindRoseBinPlot.get_figure(variable, ws_bins, wd_sectors=12, wd_var='AMB_WD', ws_var='AMB_REWS', turbine=0, contraction='weights', fig=None, ax=None, title=None, figsize=None, ret_data=False, **kwargs)[source]

Creates the figure

Parameters

variable: str

The variable name

ws_bins: list of float

The wind speed bins

wd_var: str

The wind direction variable

ws_var: str

The wind speed variable

turbine: int

The turbine index

contraction: str

The contraction method for states: weights, mean_no_weights, sum_no_weights

fig: pyplot.Figure, optional

The figure object

ax: pyplot.Axes, optional

The axes object

title: str, optional

The title

figsize: tuple, optional

The figsize argument for plt.subplots

ret_data: bool

Flag for returning wind rose data

kwargs: dict, optional

Additional parameters for plt.pcolormesh

Returns

ax: pyplot.Axes

The axes object