diff options
-rw-r--r-- | eitControl.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eitControl.py b/eitControl.py index 1f69944..5922e31 100644 --- a/eitControl.py +++ b/eitControl.py @@ -27,6 +27,7 @@ class Experiment: self.root = root self.tic = 0 self.channelsNames2grab={'tic', 'x','rfFreq','dac0', 'dac1', 'adc0', 'adc1', 'adc2', 'adc3'} + self.channelsColor = { 'adc0': 'y', 'adc1': 'c', 'adc2': 'm', 'adc3': 'b', 'dac0': 'w', 'dac1': 'g'} #self.channelsNames2plot={'dac0', 'dac1', 'adc0', 'adc1', 'adc2', 'adc3'} if args.test: self.channelsNames2plot={'adc0', 'adc1', 'adc2', 'adc3'} @@ -207,7 +208,10 @@ class Experiment: continue y = self.data[name] if name not in self.channelGraph: - color = (255,0,0) + if name in self.channelsColor: + color = self.channelsColor[name] + else: + color = (255,0,0) self.channelGraph[name]=self.dataPlot.plot(x,y, pen=None, symbol='o', symbolPen=None, symbolBrush=color, symbolSize=5) else: self.channelGraph[name].setData(x,y) |