From 2d96d161b0e1a0a57e26c4f52ccc6f25f88e5c16 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 14 Jun 2021 21:52:36 -0400 Subject: setting axis labels --- eitControl.py | 5 +++-- 1 file 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 -- cgit v1.2.3