hnn_core.viz.plot_spikes_raster

hnn_core.viz.plot_spikes_raster(cell_response, ax=None, show=True)[source]

Plot the aggregate spiking activity according to cell type.

Parameters
cell_responseinstance of CellResponse

The CellResponse object from net.cell_response

axinstance of matplotlib axis | None

An axis object from matplotlib. If None, a new figure is created.

showbool

If True, show the figure.

Returns
figinstance of matplotlib Figure

The matplotlib figure object.