Hi Guys,
I've noticed a question about changing the value of 'spacing', so I got to work. If you want to test your code against other values This is the code for you!
k = 0
print(ex(r'matrices\example.txt', r'results\result_example.png', 42 + 2*k)==( 288+8*k, 348+8*k))
print(ex(r'matrices\minimal.txt', r'results\result_minimal.png', 30 + k)==( 82+2*k, 140+2*k))
print(ex(r'matrices\mat-3-1.txt', r'results\result_mat-3-1.png', 1 + 48*k)==( 466+864*k, 120+192*k))
print(ex(r'matrices\mat-4-5.txt', r'results\result_mat-4-5.png', 5 + 24*k)==( 120+240*k, 61+120*k))
print(ex(r'matrices\mat-5-5.txt', r'results\result_mat-5-5.png', 5 + 60*k)==( 150+720*k, 78+360*k))
print(ex(r'matrices\mat-2-97.txt', r'results\result_mat-2-97.png', 97 + 4*k)== (690+24*k, 341+12*k))
This works for every value of k, as far as k is a natural number.
Let me know if this has been useful! (You might need to change the path where your files are going to be saved. I've created a folder named results)