Skip to content

Commit

Permalink
OWSieve: Fix labels overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Jan 19, 2017
1 parent 0f24ca0 commit f94e736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Orange/widgets/visualize/owsieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def _oper(attr, txt):
max_ylabel_w = min(max_ylabel_w, 200)
x_off = width(attr_x.name) + max_ylabel_w
y_off = 15
square_size = min(view.width() - x_off - 35, view.height() - y_off - 50)
square_size = min(view.width() - x_off - 35, view.height() - y_off - 80)
square_size = max(square_size, 10)
self.canvasView.setSceneRect(0, 0, view.width(), view.height())

Expand Down Expand Up @@ -484,6 +484,7 @@ def _oper(attr, txt):
Qt.AlignLeft | Qt.AlignVCenter, bold=True, vertical=True)
text(attr_x.name, x_off + square_size / 2, bottom,
Qt.AlignHCenter | Qt.AlignTop, bold=True)
bottom += 30
xl = text("χ²={:.2f}, p={:.3f}".format(chi.chisq, chi.p),
0, bottom)
# Assume similar height for both lines
Expand Down

0 comments on commit f94e736

Please sign in to comment.