get_colors_pph

tropycal.utils.get_colors_pph(plot_type, colormap, levels=None)[source]

Retrieve a list of colors for Practically Perfect Hindcast (PPH) for tornadoes.

Parameters
  • plot_type (str) – Plot type for PPH. Can be “daily” for single-day PPH, or “total” for multi-day PPH.

  • colormap (str or list) – Matplotlib colormap to use. Default is ‘spc’, which uses Tropycal’s default colors for the EF scale. If a list, this list must have 6 colors in order from EF0 to EF5.

  • levels (list) – List of contour levels. Default is SPC intervals.

Returns

  • colors (list or cmap) – If used a matplotlib colormap, a cmap is returned, otherwise a list of colors is returned.

  • levels (list) – List of contour levels.