Closedown

This commit is contained in:
sfop
2016-06-17 11:08:15 +02:00
parent a48c897534
commit 11e8a9bc39

View File

@@ -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))
add_convex_hull_plot ("test", x,y,"Step " + str(step))