From bfa1abacc16f328cacc3255b06e7bfcb2c695a1a Mon Sep 17 00:00:00 2001 From: Luke Campagnola <> Date: Tue, 8 May 2012 17:55:44 -0400 Subject: [PATCH] Bugfix -- axisitem is now more careful about measuring text --- graphicsItems/AxisItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphicsItems/AxisItem.py b/graphicsItems/AxisItem.py index bd91055e..5c009c4e 100644 --- a/graphicsItems/AxisItem.py +++ b/graphicsItems/AxisItem.py @@ -505,7 +505,7 @@ class AxisItem(GraphicsWidget): for i in range(len(tickLevels)): ## take a small sample of strings and measure their rendered text spacing, values = tickLevels[i] - strings = self.tickStrings(values[:2], self.scale, spacing) + strings = self.tickStrings(values, self.scale, spacing) if len(strings) == 0: continue textRects = [p.boundingRect(QtCore.QRectF(0, 0, 100, 100), QtCore.Qt.AlignCenter, s) for s in strings]