From 8eb02512f87aa789f41313d84c7789ce764f6fe3 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 20 Dec 2017 23:53:28 +0000 Subject: Fixed issue that caused Mb ticks to get out of alignment for mapping figure --- wqflask/wqflask/marker_regression/marker_regression_gn1.py | 4 ++-- 1 file 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 -- cgit v1.2.3