From 442ec66a603bdc312f760027d4c000ba7af14fe6 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 18 May 2020 11:49:32 -0500 Subject: Partial fix to issue of the top margin being too small when using R/qtl and cofactors --- wqflask/wqflask/marker_regression/display_mapping_results.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index f70bc555..a648667b 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -508,7 +508,10 @@ class DisplayMappingResults(object): yTopOffset = max(90, yTopOffset) else: if self.legendChecked: - yTopOffset = max(90, yTopOffset) + if self.covariates != "" and self.controlLocus and self.doControl != "false": + yTopOffset = max(120, yTopOffset) + else: + yTopOffset = max(100, yTopOffset) else: pass -- cgit v1.2.3