hnn_core.viz.plot_spikes_raster¶
- hnn_core.viz.plot_spikes_raster(cell_response, trial_idx=None, ax=None, show=True, cell_types=None, colors=None)[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.
- cell_types: list of str
List of cell types to plot
- colors: list of str | None
Optional custom colors to plot. Default will use the color cycler.
- Returns:
- figinstance of matplotlib Figure
The matplotlib figure object.