Update plot.py

The new ImageItem.scale() (from pyqtgraph) no longer accepts any arguments
This commit is contained in:
sdn-ninja 2024-02-01 21:02:30 +00:00 committed by GitHub
parent 625ba9d698
commit 59dcb4db7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,7 +311,7 @@ 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.scale()
self.plot.clear()
self.plot.addItem(self.waterfallImg)