Column::SetType

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 type designator of a column (X, Y, Z, YErr, XErr, L or disregard).

Syntax

SetType(Type)

Parameters

Type
0: Y
1: Disregard
2: Y Error
3: X
4: Label
5: Z
6: X Error

Return

None

Examples

import PyOrigin
PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).SetType(0)
type= PyOrigin.FindWorksheet('[Book1]Sheet1').Columns(0).GetType()
if type==0:
        print('column 1 is designated as Y')

See Also

Column::GetType