From 8ce2970f8fbd711b30269442ad86bfbe9bee39a0 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Mon, 10 Jul 2017 08:55:05 +0200 Subject: [PATCH] Script execution --- script/test/TestLayout.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 script/test/TestLayout.py diff --git a/script/test/TestLayout.py b/script/test/TestLayout.py new file mode 100644 index 0000000..0cfb606 --- /dev/null +++ b/script/test/TestLayout.py @@ -0,0 +1,23 @@ +from plotutils import * + +p = plot(None)[0] +p.setLegendVisible(True) +for block in get_blocks(): + print block.id + print block + (xmin, xmax) = block.x_range + (ymin, ymax) = block.y_range + r = plot_rectangle(p, xmin, ymin, xmax, ymax, name = block.id) + print r + 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") + + + + + + \ No newline at end of file