Add a plot to graph layer
AddPlot( pPyRange, PlotType)
DataPlot
EX1
#Assume there are two columns with data in Book1 import PyOrigin data=PyOrigin.NewDataRange() Sheet=PyOrigin.WorksheetPages('Book1').Layers(0) if data.IsValid(): data.Add('X', Sheet, 0, 0, -1, -1) gp = PyOrigin.FindGraphLayer('Graph1') gp.AddPlot(data, 1)