plot_cone¶
- tropycal.utils.plot_cone(self, cone, plot_center_line=False, **kwargs)[source]¶
Plots a Tropycal derived National Hurricane Center (NHC) cone of uncertainty.
- Parameters
cone (dict or xarray.Dataset) – Cone of uncertainty generated from
utils.generate_nhc_cone()
.plot_center_line (bool) – Determine whether to plot cone center line. Default is False.
- Other Parameters
fillcolor (str) – Color to fill the cone in. Default is ‘white’.
linecolor (str) – Color of outer edge of cone. Default is ‘black’.
linewidth (int or float) – Linewidth of outer edge of cone. Default is 1.0.
alpha (int or float) – Fill opacity of cone. Default is 0.6.
zorder (int or float) – Optional display order on axes of the cone and center line.
center_linecolor (str) – Color of center line. Default is ‘black’. Ignored if plot_center_line is False.
center_linewidth (int or float) – Linewidth of center line. Default is 2.0. Ignored if plot_center_line is False.
center_linestyle (str) – Linestyle of center line. Default is ‘solid’. Ignored if plot_center_line is False.
Notes
It is not necessary to pass a “transform” keyword argument, as this is already assumed to be ccrs.PlateCarree().
This function is already appended to an axes instance if
ax = utils.add_tropycal(ax)
is run beforehand. This allows this method to be called simply viaax.plot_cone(...)
.