From 74a60efd3fd11d6f4103b55dfd3e91d09bf21989 Mon Sep 17 00:00:00 2001 From: sfop Date: Thu, 16 Jun 2016 16:55:38 +0200 Subject: [PATCH] Script execution --- script/test/MultiplePlot.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 script/test/MultiplePlot.py diff --git a/script/test/MultiplePlot.py b/script/test/MultiplePlot.py new file mode 100644 index 0000000..6b1ed73 --- /dev/null +++ b/script/test/MultiplePlot.py @@ -0,0 +1,28 @@ +import random + +title = "test" +def add_plot(x,y, name=None): + plots = get_plots(title = title) + if len(plots)==0: + p = plot(None,name="Data 1")[0] + p.setLegendVisible(True) + else: + p = plots[0] + p.addSeries(LinePlotSeries(name)) + s = p.getSeries(name) + s.setData(x, y) + + + + +x=[] +y=[] + +for step in range(1,2): + x=[] + y=[] + for i in range(100): + x.append(random.random() * 100 / step) + y.append(random.random() * 100/ step) + add_plot (x,y,"Step " + str(step)) +