aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-06-05 13:15:57 -0500
committerzsloan2019-06-05 13:15:57 -0500
commit65b33706d16abb7ef68a815fde5e3b1e69d4638f (patch)
tree6872184c7d1aafca473d1ad2a460849fe554a6d1 /wqflask
parent66c6bbfcbbd5fb23145ec09956f4809e5f701bec (diff)
downloadgenenetwork2-65b33706d16abb7ef68a815fde5e3b1e69d4638f.tar.gz
Issue where manhattan plot points went past the edge of the plot should be fixed now
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index e53e5279..043e561a 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1868,7 +1868,14 @@ class DisplayMappingResults(object):
point_color = pid.grey
else:
point_color = pid.black
- canvas.drawString("5", Xc-canvas.stringWidth("5",font=symbolFont)/2+1,Yc+2,color=point_color, font=symbolFont)
+
+ final_x_pos = Xc-canvas.stringWidth("5",font=symbolFont)/2+1
+ if final_x_pos > (xLeftOffset + plotWidth):
+ break
+ elif final_x_pos < xLeftOffset:
+ continue
+ else:
+ canvas.drawString("5", final_x_pos,Yc+2,color=point_color, font=symbolFont)
else:
LRSCoordXY.append((Xc, Yc))