Closedown

This commit is contained in:
sfop
2016-06-16 17:12:31 +02:00
parent aeb50ce617
commit cbc6a1b7ef

View File

@@ -12,6 +12,15 @@ def add_plot(x,y, name=None):
p.addSeries(LinePlotSeries(name))
s = p.getSeries(name)
s.setData(x, y)
x1,x2,y1,y2 = min(x), max(x), min(y), max(y)
bb = p.addSeries(LinePlotSeries(name + " BBox"))
bb=p.getSeries(name + " BBox")
bb.setColor(s.getColor)
bb.setData([x1,x2, x2, x1, x1], [y1, y1, y2, y2, x1])
@@ -19,10 +28,10 @@ def add_plot(x,y, name=None):
x=[]
y=[]
for step in range(1,2):
for step in range(1,10):
x=[]
y=[]
for i in range(100):
for i in range(20):
x.append(random.random() * 100 / step)
y.append(random.random() * 100/ step)
add_plot (x,y,"Step " + str(step))