From bb44a3387a6bd22e7e933cdd34fcde2de60cbb8c Mon Sep 17 00:00:00 2001 From: lidstrom83 Date: Tue, 3 May 2016 10:38:44 -0600 Subject: [PATCH] Made InfLineLabel.setFormat actually set the format string. --- pyqtgraph/graphicsItems/InfiniteLine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/InfiniteLine.py b/pyqtgraph/graphicsItems/InfiniteLine.py index 2df84f47..3da82327 100644 --- a/pyqtgraph/graphicsItems/InfiniteLine.py +++ b/pyqtgraph/graphicsItems/InfiniteLine.py @@ -426,7 +426,7 @@ class InfLineLabel(TextItem): May optionally contain "{value}" to include the lines current value (the text will be reformatted whenever the line is moved). """ - self.format = format + self.format = text self.valueChanged() def mouseDragEvent(self, ev):