8.1.26.17 Worksheet::SetColDesignations

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

Description

Set the column designations

Syntax

SetColDesignations(ColDesig, Repeat = True,  C1 = 0,  C2 = -1)

Parameters

ColDesig
designation pattern
Possible values for designations:
'X' - X column
'Y' - Y column
'Z' - Z column
'E' - Y error column
'L' - label column
'M' - X error column
'N' - ignore column
Repeat
Repeat pattern. Defines how the pattern is applied. if number of columns in worksheet is larger then length of pattern.
Possible values:True - repeat entire pattern(by default)
False - set designations for the rest of columns to be the last one defined by pattern
C1
start index to clear, default to 0 means from the first column
C2
end index to clear, default to -1 means to the end of column

Return

Returns True on successful and False on failure.

Examples

import PyOrigin
wks=PyOrigin.WorksheetPages('Book1').Layers(0)
wks.InsertCol(2,'C')
wks.InsertCol(3,'D')
wks.SetColDesignations('XYXY')