Skip to content

Commit 8561326

Browse files
committed
update docstring
1 parent 9a78c15 commit 8561326

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

element_array_ephys/plotting/probe_level.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def plot_raster(units: np.ndarray, spike_times: np.ndarray) -> matplotlib.figure
1212
spike_times (np.ndarray): Spike timestamps in seconds.
1313
1414
Returns:
15-
matplotlib.figure.Figure: matplotlib figure object.
15+
matplotlib.figure.Figure: matplotlib figure object showing spikes rasters over time (x-axis in seconds). Each row (y-axis) indicates a single unit.
1616
"""
1717
units = np.arange(1, len(units) + 1)
1818
x = np.hstack(spike_times)
@@ -42,7 +42,7 @@ def plot_driftmap(
4242
colormap (str, optional): Colormap. Defaults to "gist_heat_r".
4343
4444
Returns:
45-
matplotlib.figure.Figure: matplotlib figure object.
45+
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).
4646
"""
4747

4848
spike_times = np.hstack(spike_times)

element_array_ephys/plotting/unit_level.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def plot_waveform(waveform: np.ndarray, sampling_rate: float) -> go.Figure:
1616
sampling_rate (float): Sampling rate in kHz.
1717
1818
Returns:
19-
go.Figure: Plotly figure object.
19+
go.Figure: Plotly figure object for showing the amplitude of a waveform (y-axis in μV) over time (x-axis).
2020
"""
2121
waveform_df = pd.DataFrame(data={"waveform": waveform})
2222
waveform_df["timestamp"] = waveform_df.index / sampling_rate
@@ -50,10 +50,11 @@ def plot_auto_correlogram(
5050
Args:
5151
spike_times (np.ndarray): Spike timestamps in seconds
5252
bin_size (float, optional): Size of the time bin (lag) in seconds. Defaults to 0.001.
53-
window_size (int, optional): Size of the correlogram window in seconds. Defaults to 1.
53+
window_size (int, optional): Size of the correlogram window in seconds. Defaults to 1 (± 500ms)
5454
5555
Returns:
56-
go.Figure: Plotly figure object.
56+
go.Figure: Plotly figure object for showing
57+
counts (y-axis) over time lags (x-axis).
5758
"""
5859
from .corr import acorr
5960

0 commit comments

Comments
 (0)