From 76ee9c7bf4b12b09ac37cbb15dda92a9cb27bf51 Mon Sep 17 00:00:00 2001 From: sfop Date: Mon, 27 Jun 2016 16:45:30 +0200 Subject: [PATCH] Script execution --- script/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index ec685d8..d157f69 100755 --- a/script/local.py +++ b/script/local.py @@ -177,8 +177,10 @@ def add_convex_hull_plot(title, x,y, name=None, clear = False, x_range = None, y #Convex Hull #In the first time the plot shows, it takes some time for the color to be assigned - while s.color is None: + timmeout = 0 + while s.color is None and timeout<1000: time.sleep(0.001) + timeout = timeout + 1 hull = LinePlotSeries(name + "Hull", s.color) p.addSeries(hull) #Bounding box