aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))