From f3627033b18c1b7dbe91a36f770af3f72e68a6aa Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 5 Apr 2018 15:06:23 +0200 Subject: [PATCH] [bugfix] auto downsampling not working --- pylot/core/util/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index a7fec228..04092146 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -450,7 +450,7 @@ class WaveformWidgetPG(QtGui.QWidget): self.main_layout = QtGui.QVBoxLayout() self.label = QtGui.QLabel() self.setLayout(self.main_layout) - self.plotWidget = self.pg.PlotWidget(self.parent(), title=title, autoDownsample=True) + self.plotWidget = self.pg.PlotWidget(self.parent(), title=title) self.main_layout.addWidget(self.plotWidget) self.main_layout.addWidget(self.label) self.plotWidget.showGrid(x=False, y=True, alpha=0.3) @@ -461,6 +461,7 @@ class WaveformWidgetPG(QtGui.QWidget): self.pen_linecolor = self.pg.mkPen(self.parent()._style['linecolor']['rgba']) self.reinitMoveProxy() self._proxy = self.pg.SignalProxy(self.plotWidget.scene().sigMouseMoved, rateLimit=60, slot=self.mouseMoved) + self.plotWidget.getPlotItem().setDownsampling(auto=True) def reinitMoveProxy(self): self.vLine = self.pg.InfiniteLine(angle=90, movable=False, pen=self.pen_multicursor)