stnmf.plot.sta

stnmf.plot.sta(s, ax=None, **kwargs)

Plot the spike-triggered average (STA)

Parameters:
  • s ((x,y) array_like) – Spatial profile of the spike-triggered average

  • ax (matplotlib.axes.Axes, optional) – Existing figure axes to draw the STA into. If None, a new figure is created. Default is None

Keyword Arguments:

cmap (str or matplotlib.colors.Colormap, optional) – Color map to use. Recommended are ‘filter’ for conventional spatial contrast filter colors (black-gray-white with masked values magenta) and ‘rwb’ for convenient view (red-white-black with masked values lightseagreen). Default is ‘filter’

Raises:

ValueError – If s has incorrect shape.