foxes.output.RosePlotOutput.get_figure(wd_sectors, ws_var, ws_bins, wd_var='AMB_WD', fig=None, ax=None, figsize=None, freq_delta=3, cmap='summer', title=None, legend_pars=None, ret_data=False, **kwargs)[source]

Creates the figure

Parameters

wd_sectors: int

The number of wind rose sectors

ws_var: str

The wind speed variable

ws_bins: list of float

The wind speed bins

wd_var: str

The wind direction variable

fig: pyplot.Figure, optional

The figure object

ax: pyplot.Axes, optional

The axes object

figsize: tuple, optional

The figsize argument for plt.subplots

freq_delta: int

The frequency delta for the label in percent

cmap: str

The color map

title: str, optional

The title

legend_pars: dict, optional

Parameters for the legend

ret_data: bool

Flag for returning wind rose data

kwargs: dict, optional

Additional parameters for get_data

Returns

ax: pyplot.Axes

The axes object

data: xarray.Dataset, optional

The plot data