diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 23:07:10 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-11 23:07:10 -0400 |
commit | d74aa42aaa859f847a27017f20bfe609cf111f20 (patch) | |
tree | ebe426603c25f6b1916aa4c0ef903c258379d0a8 /eitControl.py | |
parent | d5443fbf8d4f1c6131f2430ed36c176be0c029a0 (diff) | |
download | qolab-d74aa42aaa859f847a27017f20bfe609cf111f20.tar.gz qolab-d74aa42aaa859f847a27017f20bfe609cf111f20.zip |
better x axis shift with proper label
Diffstat (limited to 'eitControl.py')
-rw-r--r-- | eitControl.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eitControl.py b/eitControl.py index 5232435..d62ec65 100644 --- a/eitControl.py +++ b/eitControl.py @@ -27,7 +27,7 @@ class Experiment: #self.channelsNames2plot={'dac0', 'dac1', 'adc0', 'adc1', 'adc2', 'adc3'} self.channelsNames2plot={'adc0'} self.xChannelName='rfFreq' # can be also 'tic' or any of above - self.xlabel='Frequency (Hz)' + self.xlabel='' self.lines2plot={} self.clearData() self.guiSetup(root) @@ -187,7 +187,11 @@ class Experiment: # X-axis (i.e. independent variable) # self.data['x'].append(tic) - self.data['x']=self.data[self.xChannelName] + # 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 ' + self.data['x'].append(x) stop = datetime.now() runTime = (stop-start).seconds + float((stop-start).microseconds)/1000000 |