spiketools.plts.spikes.plot_waveform_density¶
- spiketools.plts.spikes.plot_waveform_density(waveforms, timestamps=None, bins=(250, 50), cmap='viridis', ax=None, **plt_kwargs)[source]¶
Plot a heatmap of waveform density, created as a 2d histogram of spike waveforms.
- Parameters:
- waveforms2d array
Voltage values for the waveforms, with shape [n_waveforms, n_timestamps].
- timestamps1d array, optional
Timestamps corresponding to the waveforms.
- binstuple of (int, int), optional, default: (250, 50)
Bin definition to use to create the figure.
- cmapstr, optional, default: ‘viridis’
Colormap to use for the figure.
- axAxes, optional
Axis object upon which to plot.
- plt_kwargs
Additional arguments to pass into the plot function.