From b9086f1023eb14a72e22b95515b339b7fbf1fe7a Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 2 Feb 2021 15:10:02 -0800 Subject: [PATCH] no "i" variable anymore --- pyqtgraph/graphicsItems/PlotItem/PlotItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/PlotItem/PlotItem.py b/pyqtgraph/graphicsItems/PlotItem/PlotItem.py index 7d23309b..318351f4 100644 --- a/pyqtgraph/graphicsItems/PlotItem/PlotItem.py +++ b/pyqtgraph/graphicsItems/PlotItem/PlotItem.py @@ -1019,7 +1019,7 @@ class PlotItem(GraphicsWidget): if numCurves != -1: if self.ctrl.forgetTracesCheck.isChecked(): curve.clear() - self.removeItem(curves[i]) + self.removeItem(curve) else: curve.hide()