14 lines
789 B
Python
14 lines
789 B
Python
import random
|
|
|
|
|
|
clear_convex_hull_plot("test")
|
|
for step in range(1,5):
|
|
x,y=[],[]
|
|
for i in range(50):
|
|
x.append(random.random() * 100 / step)
|
|
y.append(random.random() * 100/ step)
|
|
add_convex_hull_plot ("test", x,y,"Step " + str(step), (-50,150), (-50,150))
|
|
|
|
#x = [317.86916703765246, 318.2215338763623, 317.5688250452771, 318.74843805712953, 315.77042681965906, 319.8600058760031, 318.2215338763623, 318.2215338763623, 318.74843805712953, 318.11687837407675, 319.8600058760031]
|
|
#y = [226.71039474501808, 222.34863253627455, 226.4631572933208, 226.81240897796238, 230.7042858871591, 227.4796142397247, 222.34863253627455, 222.34863253627455, 226.81240897796238, 230.7042858871591, 227.4796142397247]
|
|
#add_convex_hull_plot ("test", x,y,"X") |