skrf.plotting.shade_bands

skrf.plotting.shade_bands(edges, y_range=None, cmap='prism', **kwargs)[source]

Shades frequency bands.

When plotting data over a set of frequency bands it is nice to have each band visually separated from the other. The kwarg alpha is useful.

Parameters:
  • edges (array-like) – x-values separating regions of a given shade

  • y_range (tuple or None, optional.) – y-values to shade in. Default is None.

  • cmap (str, optional.) – see matplotlib.cm or matplotlib.colormaps for acceptable values. Default is ‘prism’.

  • **kwargs (key word arguments) – passed to matplotlib.fill_between

Examples

>>> rf.shade_bands([325,500,750,1100], alpha=.2)