fix waterfall

This commit is contained in:
oe2lsp 2024-10-05 15:24:25 +02:00
parent ef59096f03
commit 1ede22e57c
45 changed files with 11 additions and 3 deletions

0
LICENSE Executable file → Normal file
View File

0
MANIFEST.in Executable file → Normal file
View File

0
PKGBUILD Executable file → Normal file
View File

2
README.rst Executable file → Normal file
View File

@ -188,7 +188,7 @@ Debugg:
-----
python3
import qspectrumanalyzer.__main__
import qspectrumanalyzer.__main__
qspectrumanalyzer.__main__.main()

0
qspectrumanalyzer.desktop Executable file → Normal file
View File

0
qspectrumanalyzer.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
qspectrumanalyzer.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
qspectrumanalyzer.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

0
qspectrumanalyzer/__init__.py Executable file → Normal file
View File

0
qspectrumanalyzer/__main__.py Executable file → Normal file
View File

0
qspectrumanalyzer/backends/__init__.py Executable file → Normal file
View File

0
qspectrumanalyzer/backends/hackrf_sweep.py Executable file → Normal file
View File

0
qspectrumanalyzer/backends/rtl_power.py Executable file → Normal file
View File

0
qspectrumanalyzer/backends/rtl_power_fftw.py Executable file → Normal file
View File

0
qspectrumanalyzer/backends/rx_power.py Executable file → Normal file
View File

0
qspectrumanalyzer/backends/soapy_power.py Executable file → Normal file
View File

0
qspectrumanalyzer/baseline.py Executable file → Normal file
View File

0
qspectrumanalyzer/colors.py Executable file → Normal file
View File

0
qspectrumanalyzer/data.py Executable file → Normal file
View File

0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.qm Executable file → Normal file
View File

0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.ts Executable file → Normal file
View File

0
qspectrumanalyzer/persistence.py Executable file → Normal file
View File

12
qspectrumanalyzer/plot.py Executable file → Normal file
View File

@ -1,6 +1,8 @@
import collections, math
from Qt import QtCore
from Qt import QtGui
import pyqtgraph as pg
# Basic PyQtGraph settings
@ -310,8 +312,14 @@ class WaterfallPlotWidget:
# Create waterfall image on first run
if self.counter == 1:
self.waterfallImg = pg.ImageItem()
self.waterfallImg.scale((data_storage.x[-1] - data_storage.x[0]) / len(data_storage.x), 1)
self.waterfallImg = pg.ImageItem( levels=((data_storage.x[-1] - data_storage.x[0]) / len(data_storage.x), 1))
#self.waterfallImg.scale((data_storage.x[-1] - data_storage.x[0]) / len(data_storage.x), 1)
#self.waterfallImg.scale(float((data_storage.x[-1] - data_storage.x[0]) / len(data_storage.x)), float(1))
#self.waterfallImg.scale(5126)
tr = QtGui.QTransform() # prepare ImageItem transformation:
tr.scale((data_storage.x[-1] - data_storage.x[0]) / len(data_storage.x), 1) # scale horizontal and vertical axes
self.waterfallImg.setTransform(tr)
self.plot.clear()
self.plot.addItem(self.waterfallImg)

0
qspectrumanalyzer/qspectrumanalyzer.svg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

0
qspectrumanalyzer/qspectrumanalyzer.ui Executable file → Normal file
View File

0
qspectrumanalyzer/qspectrumanalyzer_baseline.ui Executable file → Normal file
View File

0
qspectrumanalyzer/qspectrumanalyzer_colors.ui Executable file → Normal file
View File

0
qspectrumanalyzer/qspectrumanalyzer_persistence.ui Executable file → Normal file
View File

0
qspectrumanalyzer/qspectrumanalyzer_settings.ui Executable file → Normal file
View File

0
qspectrumanalyzer/qspectrumanalyzer_settings_help.ui Executable file → Normal file
View File

0
qspectrumanalyzer/qspectrumanalyzer_smoothing.ui Executable file → Normal file
View File

0
qspectrumanalyzer/settings.py Executable file → Normal file
View File

0
qspectrumanalyzer/smoothing.py Executable file → Normal file
View File

0
qspectrumanalyzer/subprocess.py Executable file → Normal file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer.py Executable file → Normal file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_baseline.py Executable file → Normal file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_colors.py Executable file → Normal file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_persistence.py Executable file → Normal file
View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_settings.py Executable file → Normal file
View File

View File

0
qspectrumanalyzer/ui_qspectrumanalyzer_smoothing.py Executable file → Normal file
View File

0
qspectrumanalyzer/utils.py Executable file → Normal file
View File

0
qspectrumanalyzer/version.py Executable file → Normal file
View File

0
qspectrumanalyzer/windows.py Executable file → Normal file
View File

0
setup.py Executable file → Normal file
View File