Commit bfa1abac authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Bugfix -- axisitem is now more careful about measuring text

parent 7c1c9f8d
......@@ -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:
textRects = [p.boundingRect(QtCore.QRectF(0, 0, 100, 100), QtCore.Qt.AlignCenter, s) for s in strings]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment