allensdk.brain_observatory.ecephys.visualization package

Module contents

allensdk.brain_observatory.ecephys.visualization.plot_mean_waveforms(mean_waveforms, unit_ids, peak_channels)[source]

Utility for plotting mean waveforms on each unit’s peak channel

Parameters:
mean_waveforms : dictionary

Maps unit ids to channelwise averege spike waveforms for those units

unit_ids : array-like

unique integer identifiers for units to be included

allensdk.brain_observatory.ecephys.visualization.plot_spike_counts(data_array, time_coords, cbar_label, title, xlabel='time relative to stimulus onset (s)', ylabel='unit', xtick_step=20)[source]

Utility for making a simple spike counts plot.

Parameters:
data_array : xarray.DataArray

2D data array unitwise values per time bin. See EcephysSession.sweepwise_spike_counts

allensdk.brain_observatory.ecephys.visualization.raster_plot(spike_times, figsize=(8, 8), cmap=<matplotlib.colors.ListedColormap object at 0x7f697c9dd668>, title='spike raster', cycle_colors=False)[source]