act.plotting.ContourDisplay.plot_vectors_from_spd_dir#
- ContourDisplay.plot_vectors_from_spd_dir(fields, time=None, subplot_index=(0,), mesh=False, function='cubic', grid_delta=(0.01, 0.01), grid_buffer=0.1, **kwargs)[source]#
Extracts, grids, and creates a contour plot. If subplots have not been added yet, an axis will be created assuming that there is only going to be one plot.
- Parameters:
fields (dict) – Dictionary of fields to use for x, y, and z data.
time (datetime) – Time in which to slice through datasets.
mesh (boolean) – Set to True to interpolate u and v to grid and create wind barbs.
function (string) – Defaults to cubic function for interpolation. See scipy.interpolate.Rbf for additional options.
grid_delta (1D tuple, list, or array) – x and y deltas for creating grid.
grid_buffer (float) – Buffer to apply to grid.
**kwargs (keyword arguments) – The keyword arguments for
plt.barbs()
- Returns:
ax (matplotlib axis handle) – The matplotlib axis handle of the plot.