PlotView: adding plotdata

The following code will result in the image above

pv = gui.CreatePlotView()
d = gui.PlotData(0,0,0)
d.AddXY(0.0,0.0)
d.AddXY(0.0,2.0)
d.AddXY(1.0,2.0)
d.AddXY(2.0,2.0)
d.AddXY(2.0,4.0)
pv.AddData(d)

back to PlotView

Attachments