diff options
-rw-r--r-- | eitControl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eitControl.py b/eitControl.py index 40fa25f..7dfc594 100644 --- a/eitControl.py +++ b/eitControl.py @@ -213,6 +213,12 @@ 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) + # centralFreqFormatted = pg.siFormat(self.fCent, suffix='Hz', precision=4) + # showing trailing zeros is tricky + centralFreqFormatted = f"{self.fCent/1e9:.6}" + centralFreqFormatted = str.ljust(centralFreqFormatted, 8, '0') + " GHz" + self.dataPlot.setTitle(f"Signals around center frequency {centralFreqFormatted}") + stop = datetime.now() runTime = (stop-start).seconds + float((stop-start).microseconds)/1000000 print("Replot took %s seconds to plot %s points." % (runTime, len(self.data['adc1'])) ) |