raster_plot

Contents

raster_plot#

class brainpy.measure.raster_plot(sp_matrix, times)[source]#

Get spike raster plot which displays the spiking activity of a group of neurons over time.

Parameters:
  • sp_matrix (bnp.ndarray) – The matrix which record spiking activities.

  • times (bnp.ndarray) – The time steps.

Returns:

raster_plot – Include (neuron index, spike time).

Return type:

tuple