From f71f91be9986169ff5cafa4e27784ea3ad93cf7e Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 22 Jun 2021 00:03:23 -0400 Subject: added sweep position indicator --- eitControl.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v1.2.3