Make sure to calculate with float objects.
This commit is contained in:
parent
3d8f82d70f
commit
9972ac6548
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ def annotate(fp_in, annotations):
|
||||||
y = annotation['y']
|
y = annotation['y']
|
||||||
if angle == 0:
|
if angle == 0:
|
||||||
x = float(x)
|
x = float(x)
|
||||||
y = size[3] - float(y) - 20
|
y = float(size[3]) - float(y) - 20
|
||||||
elif angle == 90:
|
elif angle == 90:
|
||||||
x, y = float(y) - 2, float(x) - 15
|
x, y = float(y) - 2, float(x) - 15
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue