From 8332f2cda0f70bd9e2b969d46c57a85453048d78 Mon Sep 17 00:00:00 2001 From: Kenneth Lyons Date: Sat, 6 Feb 2021 08:04:11 -0800 Subject: [PATCH] Remove leftover print calls from PR 1437 --- pyqtgraph/graphicsItems/LegendItem.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyqtgraph/graphicsItems/LegendItem.py b/pyqtgraph/graphicsItems/LegendItem.py index bf01f03a..7b468498 100644 --- a/pyqtgraph/graphicsItems/LegendItem.py +++ b/pyqtgraph/graphicsItems/LegendItem.py @@ -244,7 +244,6 @@ class LegendItem(GraphicsWidget, GraphicsWidgetAnchor): self.layout.addItem(label, row, col + 1) # Keep rowCount in sync with the number of rows if items are added self.rowCount = max(self.rowCount, row + 1) - print(f"_addItemToLayout set self.rowCount = {self.rowCount} \t row = {row} \t col = {col}") def setColumnCount(self, columnCount): """change the orientation of all items of the legend @@ -253,14 +252,11 @@ class LegendItem(GraphicsWidget, GraphicsWidgetAnchor): self.columnCount = columnCount self.rowCount = math.ceil(len(self.items) / columnCount) - print(f"setColumnCount set self.rowCount = {self.rowCount}") for i in range(self.layout.count() - 1, -1, -1): self.layout.removeAt(i) # clear layout for sample, label in self.items: self._addItemToLayout(sample, label) self.updateSize() - print(f"end result is self.rowCount = {self.rowCount}") - print("\n") def getLabel(self, plotItem): """Return the labelItem inside the legend for a given plotItem