Skip to content

Commit

Permalink
Shifted thick lines by one.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedstrom committed Jan 16, 2013
1 parent c92efea commit 0ac7b5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions knit-graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ def python_knit_graph(timg, tdrawable, x_scale=14, y_scale=10):
x2 = x1 + x_scale
y1 = y_scale*y
y2 = y1 + y_scale
if (x%10 == 9):
x2 = x2 - 1
if (y%10 == 9):
y2 = y2 - 1
if (x%10 == 0):
x1 = x_scale*x + 3
x1 = x_scale*x + 2
else:
x1 = x_scale*x + 1
if (y%10 == 0):
y1 = y_scale*y + 3
y1 = y_scale*y + 2
else:
y1 = y_scale*y + 1

Expand Down

0 comments on commit 0ac7b5b

Please sign in to comment.