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)