diff --git a/script/test/MultiplePlot.py b/script/test/MultiplePlot.py index a397ced..f6178ac 100644 --- a/script/test/MultiplePlot.py +++ b/script/test/MultiplePlot.py @@ -1,15 +1,13 @@ import random -def clear_plot(): - title = "test" +def clear_convex_hull_plot(title): plots = get_plots(title = title) if len(plots)>0: plots[0].clear() -def add_plot(x,y, name=None, clear = False): - title = "test" +def add_convex_hull_plot(title, x,y, name=None, clear = False): plots = get_plots(title = title) p = None if len(plots)==0: @@ -43,7 +41,7 @@ def add_plot(x,y, name=None, clear = False): hull.setColor(s.color) -clear_plot() +clear_convex_hull_plot("test") x=[] y=[] for step in range(1,5): @@ -52,4 +50,4 @@ for step in range(1,5): for i in range(20): x.append(random.random() * 100 / step) y.append(random.random() * 100/ step) - add_plot (x,y,"Step " + str(step)) \ No newline at end of file + add_convex_hull_plot ("test", x,y,"Step " + str(step)) \ No newline at end of file