Closedown

This commit is contained in:
gac-S_Changer
2017-07-10 09:09:52 +02:00
parent 8ce2970f8f
commit 593329b918
3 changed files with 10 additions and 27 deletions

View File

@@ -8,14 +8,19 @@ for block in get_blocks():
(xmin, xmax) = block.x_range
(ymin, ymax) = block.y_range
r = plot_rectangle(p, xmin, ymin, xmax, ymax, name = block.id)
print r
#In the first time the plot shows, it takes some time for the color to be assigned
while r.color is None:
time.sleep(0.001)
for puck in get_pucks(block.id):
print puck.number
(xu, yu) = puck.led_uni
(xm, ym) = puck.led_mini
plot_point(p, xu, yu, size = 3, color = r.color, name = str(puck.number)+"u")
plot_point(p, xm, ym, size = 5, color = r.color, name = str(puck.number)+"m")
plot_point(p, xm, ym, size = 7, color = r.color, name = str(puck.number)+"m")
p.addText((xu+xm)/2, (yu+ym)/2, str(puck.number))