Commit 2d3ebc9f authored by Marios Fanourakis's avatar Marios Fanourakis

set a minimum displayed range of the signal

parent 62b1b32a
......@@ -75,7 +75,9 @@ class DataInlet(Inlet):
bufsize = (2 * math.ceil(info.nominal_srate() * plot_duration), info.channel_count())
self.buffer = np.empty(bufsize, dtype=self.dtypes[info.channel_format()])
def pull_and_plot(self, plot_time, gl: pg.GraphicsLayout, plts: [pg.PlotItem]):
if not self.enabled:
return
if len(self.plt_ixs) == 0:
......@@ -91,6 +93,7 @@ class DataInlet(Inlet):
plts[-2].hideAxis('bottom')
plts[-1].hideAxis('top')
plts[-1].setTitle(title=self.name + ' channel ' + str(ch_ix))
plts[-1].vb.setLimits(minYRange=20)
self.plt_ixs.append(len(plts) - 1)
ch_ix = ch_ix + 1
......@@ -127,6 +130,7 @@ class DataInlet(Inlet):
self.curves[ch_ix].setData(this_x, np.nan_to_num(this_y), connect='finite')
class MarkerInlet(Inlet):
"""A MarkerInlet shows events that happen sporadically as vertical lines"""
def __init__(self, info: pylsl.StreamInfo):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment