From 0dac541532ecd48ed17813ff16bc2e0f1bc952ba Mon Sep 17 00:00:00 2001 From: sfop Date: Thu, 16 Jun 2016 17:20:13 +0200 Subject: [PATCH] Script execution --- script/test/MultiplePlot.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/script/test/MultiplePlot.py b/script/test/MultiplePlot.py index 993931b..e4d7d0a 100644 --- a/script/test/MultiplePlot.py +++ b/script/test/MultiplePlot.py @@ -10,13 +10,15 @@ def add_plot(x,y, name=None): else: p = plots[0] p.addSeries(LinePlotSeries(name)) - s = p.getSeries(name) - s.setData(x, y) + s = p.getSeries(name) + s.setLinesVisible(False) + 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 = LinePlotSeries(name + " BBox") + p.addSeries(bb) + bb.setColor(s.getColor()) + bb.setLineWidth(3) bb.setData([x1,x2, x2, x1, x1], [y1, y1, y2, y2, x1])