From cbc6a1b7ef4f701b3c315786959cf5ce4f96253b Mon Sep 17 00:00:00 2001 From: sfop Date: Thu, 16 Jun 2016 17:12:31 +0200 Subject: [PATCH] Closedown --- script/test/MultiplePlot.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/script/test/MultiplePlot.py b/script/test/MultiplePlot.py index f327460..993931b 100644 --- a/script/test/MultiplePlot.py +++ b/script/test/MultiplePlot.py @@ -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))