From eaaddd80f28dc97ba4a5233dec4be191be229861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Thu, 24 Apr 2014 14:20:10 +0200 Subject: [PATCH] minor ekplotter update --- ekgplotter/ekgplotter/main.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ekgplotter/ekgplotter/main.py b/ekgplotter/ekgplotter/main.py index dbc1ba2..601d196 100644 --- a/ekgplotter/ekgplotter/main.py +++ b/ekgplotter/ekgplotter/main.py @@ -97,7 +97,7 @@ class OSCThread(threading.Thread): print "%s: starting up osc receiver on '%s:%d'" % ( datetime.now().strftime("%x %X"), self.client_address[0], self.client_address[1]) - #self.subscribe_me() + self.subscribe_me() def subscribe_me(self): """Use this procedure for a quick'n dirty subscription to your chaosc instance. @@ -148,12 +148,12 @@ class OSCThread(threading.Thread): queue.put_nowait((osc_address, messages)) except Exception, e: print "recvfrom error", e - #else: - #queue.put_nowait(("/bjoern/ekg", [0])) - #queue.put_nowait(("/merle/ekg", [0])) - #queue.put_nowait(("/uwe/ekg", [0])) + else: + queue.put_nowait(("/bjoern/ekg", [0])) + queue.put_nowait(("/merle/ekg", [0])) + queue.put_nowait(("/uwe/ekg", [0])) - #self.unsubscribe_me() + self.unsubscribe_me() print "OSCThread is going down" @@ -245,6 +245,7 @@ class EkgPlot(object): def __init__(self, actor_names, num_data, colors): self.plot = pg.PlotWidget() self.plot.hide() + #self.plot.show() #self.plot.setLabel('left', "

Amplitude

") #self.plot.setLabel('bottom', "

Time

") self.plot.showGrid(False, False) @@ -256,6 +257,8 @@ class EkgPlot(object): bl = self.plot.getAxis("left") ba.setTicks([]) bl.setTicks([]) + ba.hide() + bl.hide() self.active_actors = list() self.actors = dict()