probe_level.py
plot_raster(units, spike_times)
¶
Population raster plots.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
units |
ndarray
|
Recorded units. |
required |
spike_times |
ndarray
|
Spike timestamps in seconds. |
required |
Returns:
Type | Description |
---|---|
Figure
|
matplotlib.figure.Figure: matplotlib figure object showing spikes rasters over time (x-axis in seconds). Each row (y-axis) indicates a single unit. |
Source code in element_array_ephys/plotting/probe_level.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
plot_driftmap(spike_times, spike_depths, colormap='gist_heat_r')
¶
Plot drift map of unit activity for all units recorded in a given shank of a probe.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spike_times |
ndarray
|
Spike timestamps in seconds. |
required |
spike_depths |
ndarray
|
The depth of the electrode where the spike was found in μm. |
required |
colormap |
str
|
Colormap. Defaults to "gist_heat_r". |
'gist_heat_r'
|
Returns:
Type | Description |
---|---|
Figure
|
matplotlib.figure.Figure: matplotlib figure object for showing population activity for all units over time (x-axis in seconds) according to the spatial depths of the spikes (y-axis in μm). |
Source code in element_array_ephys/plotting/probe_level.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|