diff options
-rw-r--r-- | eitControl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eitControl.py b/eitControl.py index 84864ae..36c272d 100644 --- a/eitControl.py +++ b/eitControl.py @@ -74,6 +74,7 @@ class Experiment: d2.addWidget(self.dataPlot) self.dataPlot.setBackground(None) self.dataPlot.showGrid(x=True, y=True) + self.dataPlot.addLegend() w1 = pg.LayoutWidget() bAutoZoom = QtGui.QPushButton('AutoZoom') @@ -209,7 +210,7 @@ class Experiment: 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) + self.channelGraph[name]=self.dataPlot.plot(x,y, pen=None, symbol='o', symbolPen=None, symbolBrush=color, symbolSize=5, name=name) else: self.channelGraph[name].setData(x,y) stop = datetime.now() |