aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-22 00:03:23 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-22 00:03:23 -0400
commitf71f91be9986169ff5cafa4e27784ea3ad93cf7e (patch)
tree2e7541524c728139a7000f02525f29afdf929f94
parentdbf389bb112a74632016fd1a6a8fec0389319373 (diff)
downloadpyExpControl-f71f91be9986169ff5cafa4e27784ea3ad93cf7e.tar.gz
pyExpControl-f71f91be9986169ff5cafa4e27784ea3ad93cf7e.zip
added sweep position indicatorv3.2
-rw-r--r--eitControl.py3
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()