From 59dcb4db7f0109b8eed2c3c183826f312c41997c Mon Sep 17 00:00:00 2001 From: sdn-ninja Date: Thu, 1 Feb 2024 21:02:30 +0000 Subject: [PATCH] Update plot.py The new ImageItem.scale() (from pyqtgraph) no longer accepts any arguments --- qspectrumanalyzer/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qspectrumanalyzer/plot.py b/qspectrumanalyzer/plot.py index 3473bb3..5a2bbe8 100644 --- a/qspectrumanalyzer/plot.py +++ b/qspectrumanalyzer/plot.py @@ -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)