Script execution

This commit is contained in:
sfop
2016-06-16 17:20:13 +02:00
parent cbc6a1b7ef
commit 0dac541532

View File

@@ -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])