hnn_core.viz.plot_spikes_raster¶
- hnn_core.viz.plot_spikes_raster(cell_response, trial_idx=None, 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
- trial_idxint | list of int | None
Index of trials to be plotted. If None, all trials plotted
- 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.