XF

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

Execute the X-function

Syntax

XF(name,arg)

Parameters

name
X-function name string
argument value pairs
argument with value separated by colon :
{'arg1':'val1','arg2':'val2',..}

Return

0 for success.

Examples

EX1

import PyOrigin
PyOrigin.XF('colstats', {'irng':'<active>'})

EX2

You can skip typing "{}" when no parameters need to be set. Assuming you want to calculate descriptive statistics for 3 columns, you can just highlight the 3 columns, then run the Python Script Below:

import PyOrigin
PyOrigin.XF("colstats")

You can set the recalculate mode after executing X function by syntax below:

PyOrigin.XF("X-function name",{},"-r mode") # mode: 0=None, 1=Auto, 2=Manual

For example,

import PyOrigin
PyOrigin.XF("colstats",{},"-r 1")  # mode=Auto