PlotView: drawing plotdata as lines

The following code will result in the image above

pv = gui.CreatePlotView()

"""
The first parameter of plotdata specifies wheter shapes,
no shapes but lines or shapes and lines should be drawn.
"""
d = gui.PlotData(0,0,0)
d2 = gui.PlotData(1,0,1)
d3 = gui.PlotData(2,1,2)

d.AddXY(0.0,0.0)
d.AddXY(1.0,1.0)
d2.AddXY(2.0,2.0)
d2.AddXY(3.0,3.0)
d3.AddXY(4.0,4.0)
d3.AddXY(5.0,5.0)

pv.AddData(d)
pv.AddData(d2)
pv.AddData(d3)

back to PlotView

Attachments