aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2017-12-20 23:53:28 +0000
committerzsloan2017-12-20 23:53:28 +0000
commit8eb02512f87aa789f41313d84c7789ce764f6fe3 (patch)
tree41e2a7323c00524f91545594f59ee61d10905c7c
parent9a0eaa6d0231c0d4415f89b0ad80ac67274d8551 (diff)
downloadgenenetwork2-8eb02512f87aa789f41313d84c7789ce764f6fe3.tar.gz
Fixed issue that caused Mb ticks to get out of alignment for mapping figure
-rw-r--r--wqflask/wqflask/marker_regression/marker_regression_gn1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/marker_regression/marker_regression_gn1.py b/wqflask/wqflask/marker_regression/marker_regression_gn1.py
index ff1fb492..93bd9d42 100644
--- a/wqflask/wqflask/marker_regression/marker_regression_gn1.py
+++ b/wqflask/wqflask/marker_regression/marker_regression_gn1.py
@@ -1801,9 +1801,9 @@ class MarkerRegression(object):
distScale = 10
else:
distScale = 5
- for i, tickdists in enumerate(range(distScale, int(ceil(distLen)), distScale)):
+ for j, tickdists in enumerate(range(distScale, int(ceil(distLen)), distScale)):
canvas.drawLine(startPosX + tickdists*plotXScale, yZero, startPosX + tickdists*plotXScale, yZero + 7, color=pid.black, width=1*zoom)
- if i % 2 == 0:
+ if j % 2 == 0:
canvas.drawString(str(tickdists), startPosX+tickdists*plotXScale, yZero + 10*zoom, color=pid.black, font=MBLabelFont, angle=270)
startPosX += (self.ChrLengthDistList[i]+self.GraphInterval)*plotXScale