fix waterfall
0
MANIFEST.in
Executable file → Normal file
2
README.rst
Executable file → Normal file
@ -188,7 +188,7 @@ Debugg:
|
||||
-----
|
||||
|
||||
python3
|
||||
import qspectrumanalyzer.__main__
|
||||
import qspectrumanalyzer.__main__
|
||||
qspectrumanalyzer.__main__.main()
|
||||
|
||||
|
||||
|
0
qspectrumanalyzer.desktop
Executable file → Normal file
0
qspectrumanalyzer.ico
Executable file → Normal file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
qspectrumanalyzer.png
Executable file → Normal file
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
0
qspectrumanalyzer.svg
Executable file → Normal file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
0
qspectrumanalyzer/__init__.py
Executable file → Normal file
0
qspectrumanalyzer/__main__.py
Executable file → Normal file
0
qspectrumanalyzer/backends/__init__.py
Executable file → Normal file
0
qspectrumanalyzer/backends/hackrf_sweep.py
Executable file → Normal file
0
qspectrumanalyzer/backends/rtl_power.py
Executable file → Normal file
0
qspectrumanalyzer/backends/rtl_power_fftw.py
Executable file → Normal file
0
qspectrumanalyzer/backends/rx_power.py
Executable file → Normal file
0
qspectrumanalyzer/backends/soapy_power.py
Executable file → Normal file
0
qspectrumanalyzer/baseline.py
Executable file → Normal file
0
qspectrumanalyzer/colors.py
Executable file → Normal file
0
qspectrumanalyzer/data.py
Executable file → Normal file
0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.qm
Executable file → Normal file
0
qspectrumanalyzer/languages/qspectrumanalyzer_cs.ts
Executable file → Normal file
0
qspectrumanalyzer/persistence.py
Executable file → Normal file
12
qspectrumanalyzer/plot.py
Executable file → Normal 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
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |