diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-22 00:03:23 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-22 00:03:23 -0400 |
commit | f71f91be9986169ff5cafa4e27784ea3ad93cf7e (patch) | |
tree | 2e7541524c728139a7000f02525f29afdf929f94 /eitControl.py | |
parent | dbf389bb112a74632016fd1a6a8fec0389319373 (diff) | |
download | qolab-f71f91be9986169ff5cafa4e27784ea3ad93cf7e.tar.gz qolab-f71f91be9986169ff5cafa4e27784ea3ad93cf7e.zip |
added sweep position indicator
Diffstat (limited to 'eitControl.py')
-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() |