From 20782225d1c486bc58ae8dc5ff5cc2457486d919 Mon Sep 17 00:00:00 2001 From: sfop Date: Thu, 16 Jun 2016 16:56:45 +0200 Subject: [PATCH] Script execution --- script/test/MultiplePlot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/test/MultiplePlot.py b/script/test/MultiplePlot.py index 6b1ed73..b2ccde4 100644 --- a/script/test/MultiplePlot.py +++ b/script/test/MultiplePlot.py @@ -1,14 +1,17 @@ import random title = "test" +p = None def add_plot(x,y, name=None): + global title + global p 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)) + p.addSeries(LinePlotSeries(name)) s = p.getSeries(name) s.setData(x, y)