diff options
-rw-r--r-- | wqflask/wqflask/marker_regression/marker_regression_gn1.py | 4 |
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 |