WindRoseDisplay.plot_data(dir_field, spd_field, data_field, dsname=None, subplot_index=(0,), plot_type='Line', line_color=None, set_title=None, num_dirs=30, num_data_bins=30, calm_threshold=1.0, line_plot_calc='mean', clevels=30, contour_type='count', cmap=None, **kwargs)[source]

Makes a data rose plot in line or boxplot form from the given data.

  • dir_field (str) – The name of the field representing the wind direction (in degrees).

  • spd_field (str) – The name of the field representing the wind speed.

  • data_field (str) – Name of the field to plot. Default is to plot mean values.

  • dsname (str) – The name of the datastream to plot from. Set to None to let ACT automatically try to determine this.

  • subplot_index (2-tuple) – The index of the subplot to place the plot on.

  • plot_type (str) – Type of plot to create. Defaults to a line plot but the full options include ‘line’, ‘contour’, and ‘boxplot’

  • line_color (str) – Color to use for the line

  • set_title (str) – The title of the plot.

  • num_dirs (int) – The number of directions to split the wind rose into.

  • num_data_bins (int) – The number of bins to use for data processing if doing a contour plot

  • calm_threshold (float) – Winds below this threshold are considered to be calm.

  • line_plot_calc (str) – What values to display for the line plot. Defaults to ‘mean’, but other options are ‘median’ and ‘stdev’

  • clevels (int) – Number of contour levels to plot

  • contour_type (str) – Type of contour plot to do. Default is ‘count’ which displays a heatmap of where values are occuring most along with wind directions The other option is ‘mean’ which will do a wind direction x wind speed plot with the contours of the mean values for each wind dir/speed. num_data_bins will be used for number of wind speed bins

  • cmap (str or matplotlib colormap) – The name of the matplotlib colormap to use.

  • **kwargs (keyword arguments) – Additional keyword arguments will be passed into


ax (matplotlib axis handle) – The matplotlib axis handle corresponding to the plot.