Skip to content

Commit

Permalink
Fixed var referencing bug in lsl_viewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalej committed May 8, 2018
1 parent 07068f6 commit 5bb1e1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions muselsl/muselsl/lsl_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def __init__(self, stream, fig, axes, window, scale, dejitter=True):
lines = []

for ii in range(self.n_chan):
line, = axes.plot(self.times[::subsample],
self.data[::subsample, ii] - ii, lw=1)
line, = axes.plot(self.times[::self.subsample],
self.data[::self.subsample, ii] - ii, lw=1)
lines.append(line)
self.lines = lines

Expand Down Expand Up @@ -135,9 +135,9 @@ def update_plot(self):
elif not self.filt:
plot_data = self.data - self.data.mean(axis=0)
for ii in range(self.n_chan):
self.lines[ii].set_xdata(self.times[::subsample] -
self.lines[ii].set_xdata(self.times[::self.subsample] -
self.times[-1])
self.lines[ii].set_ydata(plot_data[::subsample, ii] /
self.lines[ii].set_ydata(plot_data[::self.subsample, ii] /
self.scale - ii)
impedances = np.std(plot_data, axis=0)

Expand Down

0 comments on commit 5bb1e1e

Please sign in to comment.