Skip to content

Commit

Permalink
Merge pull request #2091 from samuelgarcia/fix_widget
Browse files Browse the repository at this point in the history
fix plot_spike_on_trace
  • Loading branch information
alejoe91 authored Oct 12, 2023
2 parents 613c590 + 8e05758 commit 3fcf16b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/spikeinterface/widgets/spikes_on_traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ def plot_matplotlib(self, data_plot, **backend_kwargs):
max_y = np.max(traces_widget.data_plot["channel_locations"][:, 1])

n = len(traces_widget.data_plot["channel_ids"])
order = traces_widget.data_plot["order"]

if order is None:
order = np.arange(n)

if ax.get_legend() is not None:
ax.get_legend().remove()
Expand Down Expand Up @@ -221,7 +217,7 @@ def plot_matplotlib(self, data_plot, **backend_kwargs):
# discontinuity
times[:, -1] = np.nan
times_r = times.reshape(times.shape[0] * times.shape[1])
waveforms = traces[waveform_idxs] # [:, :, order]
waveforms = traces[waveform_idxs]
waveforms_r = waveforms.reshape((waveforms.shape[0] * waveforms.shape[1], waveforms.shape[2]))

for i, chan_id in enumerate(traces_widget.data_plot["channel_ids"]):
Expand Down

0 comments on commit 3fcf16b

Please sign in to comment.