diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-14 21:52:36 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-14 21:52:36 -0400 |
commit | 2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16 (patch) | |
tree | 71e81b6809b870bb005b6ebd6c5958317cb592d1 | |
parent | 41a5917cb6180e71f33042a5ca018a6f97657d6b (diff) | |
download | pyExpControl-2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16.tar.gz pyExpControl-2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16.zip |
setting axis labels
-rw-r--r-- | eitControl.py | 5 |
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 |