Skip to content

Commit

Permalink
Boxplot: Left-align the statistics, and increase spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Sep 12, 2024
1 parent 3664b1d commit c767157
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/widgets/visualize/owboxplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c767157

Please sign in to comment.