Add a new subrange to the DataRange.
Add( pPyWks, R1, C1, R2, C2)
Worksheet or MatrixLayer in which range reside
Row range begin
Column range begin
Row range end, use -1 to indicate end of column
Column range end, if only one column then put in same value as nC1, if to end of worksheet use -1
Returns the number of subranges in the DataRange after execution.
EX1
# Prepare book1 with data in Col(1) and Col(2) import PyOrigin data=PyOrigin.NewDataRange() Sheet=PyOrigin.WorksheetPages('Book1').Layers(0) if data.IsValid(): data.AddSimple(Sheet, 0, 0, -1, -1) gp = PyOrigin.FindGraphLayer('Graph1') gp.AddPlot(data, 1)