sns_toolbox.plot_utilities
Utilities for plotting neural activity.
Functions
|
Plot spike rasters of spiking data. |
Module Contents
- sns_toolbox.plot_utilities.spike_raster_plot(t, data, colors=None, offset=0) None
Plot spike rasters of spiking data. :param t: vector of timesteps. :type t: List, np.ndarray, or torch.tensor :param data: 2D vector of spiking data. Each row corresponds to a different neuron. :type data: np.ndarray or torch.tensor :param colors: List of colors to plot each neuron, default is every neuron is blue. :type colors: List of str, optional :param offset: Constant vertical offset for all spikes, default is 0. :type offset: Number, optional :return: None :rtype: N/A