Script execution
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user