raster_plot
core.Monitor.raster_plot(spikes)
Returns two vectors representing for each recorded spike 1) the spike times and 2) the ranks of the neurons.
Example:
= ann.Monitor(P[:1000], 'spike')
m 1000.0)
ann.simulate(= m.get('spike')
spikes = raster_plot(spikes)
t, n
'.') plt.plot(t, n,
Parameters
Name | Type | Description | Default |
---|---|---|---|
spikes | dict | the dictionary of spikes returned by get('spike') . |
required |