aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-14 21:52:36 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-14 21:52:36 -0400
commit2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16 (patch)
tree71e81b6809b870bb005b6ebd6c5958317cb592d1 /eitControl.py
parent41a5917cb6180e71f33042a5ca018a6f97657d6b (diff)
downloadpyExpControl-2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16.tar.gz
pyExpControl-2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16.zip
setting axis labels
Diffstat (limited to 'eitControl.py')
-rw-r--r--eitControl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/eitControl.py b/eitControl.py
index 94054b1..97a7ef9 100644
--- a/eitControl.py
+++ b/eitControl.py
@@ -174,9 +174,10 @@ class Experiment:
# self.data['x'].append(tic)
# self.data['x']=self.data[self.xChannelName]
x=self.data[self.xChannelName][-1]
- x=(x-self.fCent)/1e3; # shift and convert to kHz
- self.xlabel=f'Frequency offset (kHz) relative center {self.fCent/1e6} MHz '
+ x=(x-self.fCent)
self.data['x'].append(x)
+ self.dataPlot.setLabel('bottom', 'Frequency offset', units='Hz')
+ self.dataPlot.setLabel('left', 'Signal', units='V')
stop = datetime.now()
runTime = (stop-start).seconds + float((stop-start).microseconds)/1000000