From c7671579ac399d27a1b5fb21c31f870448db9ed8 Mon Sep 17 00:00:00 2001 From: janezd Date: Thu, 12 Sep 2024 15:50:43 +0200 Subject: [PATCH] Boxplot: Left-align the statistics, and increase spacing --- Orange/widgets/visualize/owboxplot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Orange/widgets/visualize/owboxplot.py b/Orange/widgets/visualize/owboxplot.py index b591b4a411..6ac71e35d1 100644 --- a/Orange/widgets/visualize/owboxplot.py +++ b/Orange/widgets/visualize/owboxplot.py @@ -972,9 +972,10 @@ def draw_stat(self): if self.stat_test: label = QGraphicsSimpleTextItem(self.stat_test) brect = self.box_scene.sceneRect() - label.setPos(brect.center().x() - label.boundingRect().width() / 2, - 8 + self._axis_font.pixelSize() * 3.6) + label.setPos(brect.x(), + 32 + self._axis_font.pixelSize() * 3.6) label.setFlag(QGraphicsItem.ItemIgnoresTransformations) + label.setFont(self._axis_font) self.box_scene.addItem(label) def draw_axis_disc(self):