From f00852390b66492192d4320a58b9bbd430dfcf74 Mon Sep 17 00:00:00 2001 From: billypom on debian Date: Tue, 6 Aug 2024 20:36:08 -0400 Subject: [PATCH] visualizer more y axis and more interpolation --- main.py | 2 +- utils/fft_analyser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 34b9be9..60bbd27 100644 --- a/main.py +++ b/main.py @@ -69,7 +69,7 @@ class ApplicationWindow(QMainWindow, Ui_MainWindow): # Graphics plot self.PlotWidget.setXRange(0, 100, padding=0) # x axis range - self.PlotWidget.setYRange(0, 0.3, padding=0) # y axis range + self.PlotWidget.setYRange(0, 1, padding=0) # y axis range self.PlotWidget.getAxis("bottom").setTicks([]) # Remove x-axis ticks self.PlotWidget.getAxis("bottom").setLabel("") # Remove x-axis label self.PlotWidget.setLogMode(False, False) diff --git a/utils/fft_analyser.py b/utils/fft_analyser.py index 99f3e4e..3a6140c 100644 --- a/utils/fft_analyser.py +++ b/utils/fft_analyser.py @@ -98,7 +98,7 @@ class FFTAnalyser(QtCore.QThread): self.points[n] = 1e-5 # interpolate points - rs = gaussian_filter1d(self.points, sigma=1) + rs = gaussian_filter1d(self.points, sigma=2) # Mirror the amplitudes, these are renamed to 'rs' because we are using them # for polar plotting, which is plotted in terms of r and theta