diff options
-rw-r--r-- | eitControl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eitControl.py b/eitControl.py index 66edc01..ea3682c 100644 --- a/eitControl.py +++ b/eitControl.py @@ -103,6 +103,8 @@ class Experiment: d2.addWidget(self.dataPlot) self.dataPlot.showGrid(x=True, y=True) self.dataPlot.addLegend() + self.vLineSweepPosition = vLine = pg.InfiniteLine(angle=90, movable=False) + self.dataPlot.addItem(vLine, ignoreBounds=True) # global buttons w1 = pg.LayoutWidget() @@ -311,6 +313,7 @@ class Experiment: 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) + self.vLineSweepPosition.setValue(x[-1]) # centralFreqFormatted = pg.siFormat(self.fCent, suffix='Hz', precision=4) # showing trailing zeros is tricky fCent = self.rfGenFunc.getCenter() |