From cee27b62684d4ce59578888e433b01daaac55893 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Fri, 12 Jun 2020 22:28:26 -0700 Subject: [PATCH] fix-incorrect-tick-text-boundaries-calculation --- pyqtgraph/graphicsItems/AxisItem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/graphicsItems/AxisItem.py b/pyqtgraph/graphicsItems/AxisItem.py index 29f3ad62..5aca9cc4 100644 --- a/pyqtgraph/graphicsItems/AxisItem.py +++ b/pyqtgraph/graphicsItems/AxisItem.py @@ -853,8 +853,8 @@ class AxisItem(GraphicsWidget): interpreted by drawPicture(). """ profiler = debug.Profiler() - - #bounds = self.boundingRect() + if self.style['tickFont'] is not None: + p.setFont(self.style['tickFont']) bounds = self.mapRectFromParent(self.geometry()) linkedView = self.linkedView()