
Below are several X-Functions, arranged by category, that are used frequently in LabTalk script.
This is not a complete list of X-Functions in Origin, but only those supported by LabTalk! For a complete listing of all X-Functions, arranged by category and alphabetical, see the X-Function Reference. |
Contents |
Name | Brief Description |
|---|---|
Place a rectangle on the plot to perform differentiation | |
Add a rectangle onto the plot to perform FFT | |
Attach a rectangle on the plot to perform integration | |
Place a rectangle on the plot to perform interpolation | |
Place a rectangle onto the plot to calculate basic statistics | |
Place a rectangle onto the plot to do fitting | |
Region Statistics:Place a rectangle or circle onto the plot to calculate basic statistics | |
Go to specified row and column | |
imageprofile | Open the Image Profile dialog. |
Calculate the average increment in a vector | |
Calculate the average increment in a vector |
Name | Brief Description |
|---|---|
Set up data format and fitting function for Assays Template | |
Assays Template Configuration:Set up data format and fitting function for Assays Template | |
Copy numeric data | |
Shift the x values of the active curve with different mode | |
Get x coordinate crossing the given level | |
Convert a matrix to a vector | |
Combine an amplitude matrix and a phase matrix to a complex matrix. | |
Convert complex numbers in a matrix to amplitudes and phases. | |
Convert complex numbers in a matrix into their real parts and imaginary parts. | |
Copy a matrix | |
Get data markers in data plot | |
Convert a matrix layer with multiple matrix objects to a matrix page with multiple matrix layers. | |
Combine real numbers in two matrices into a complex matrix. | |
Merge (move) multiple matrix sheets into one single matrix sheet with multiple matrixobjects. | |
Create a new workbook or matrix book | |
Create new worksheet. | |
Decide whether data points are within specified ranges | |
Reduce Duplicate X Data | |
Average data points to reduce data size and make even spaced X | |
Reduce every N points of data with basic statistics | |
Reduce XY data by sub-group statistics according to X's distribution | |
Subtract the active plot from a straight line formed with two points picked on the graph page | |
Subtract on one dataset with another | |
Remove missing values from the right end of Y columns | |
Convert a vector to matrix | |
Combine amplitude vector and phase vector to form a complex vector. | |
Convert a complex vector into a vector for the amplitudes and a vector for the phases. | |
Convert complex numbers in a vector into their real parts and imaginary parts. | |
Find all vector elements whose values are equal to a specified value | |
Construct a complex vector from the real parts and imaginary parts of the complex numbers | |
Shift a vector | |
Mesh within a given polygon to resample data. | |
Resample XYZ data by meshing and gridding |
Name | Brief Description |
|---|---|
Convert the Matrix data into a Worksheet | |
Convert a range of worksheet data directly into a matrix | |
Convert the worksheet data directly into a matrix, whose coordinates can be specified by first column/row and row labels in the worksheet. | |
Convert Worksheet to Matrix by expand for columns or rows | |
Convert XYZ worksheet data into matrix | |
Regular Gridding | |
Renka-Cline Gridding Method | |
NAG Renka-Cline Gridding Method | |
Modified Shepard Gridding Method | |
NAG Modified Shepard Gridding Method | |
Sparse Gridding | |
Thin Plane Spline interpolation |
Name | Brief Description |
|---|---|
Crop matrix to a rectangle area | |
Set the dimensions and values of XY coordinates for the active matrix | |
Expand for every cell in the active matrix according to the column and row factors | |
Flip the matrix horizontally or vertically | |
Set properties of the active matrix | |
Replace cells in the active matrix with specified datamreplace | |
Rotates the matrix 90/180 degreesmrotate90 | |
Assign each cell in the active matrix from the user definited formula | |
Shrink matrix according shrinkage factors | |
Transpose the active matrix |
Name | Brief Description |
|---|---|
Plot a multiple-layers graph by grouping on column labels | |
Plot by page group, layer group, and data group | |
Plot scatter matrix of the dataset | |
Customize Multi-Axes plot | |
Plot stacked graph | |
Plot XY data with specific properties | |
Plot from a range of cells in worksheet as a virtual matrix |
Name | Brief Description |
|---|---|
Copy columns with format & headers | |
Set Sampling Interval (Implicit X) for selected Y columns | |
Mask a range of columns based on some condition | |
Move selected columns | |
Show X column (extract Sampling Interval) for the selected Y column(s) | |
Slide Show of Dependent Graphs:Slide show all the graphs which depend on the columns | |
Swap the position of two selected columns | |
Fill the cell in the specified range with random letters | |
Get the result tree | |
Insert arrow | |
Insert a graph into a worksheet cell | |
Insert images from files | |
Embed a Notes page into a worksheet cell | |
Insert sparklines into worksheet cells | |
Insert Variables into cells | |
Merge the workbooks to a new workbook. | |
Add thumbnail size plots of each Y column above the data | |
Update the embedded Graphs in the worksheet. | |
Add thumbnail size plots of each Y column above the data | |
Convert formatted data into XYZ form | |
Worksheet selection auto fill | |
Resize the worksheet by the column maximal string length. | |
Set cell(s) color to fill color or set the selected character font color to Font color. | |
Format the selected cells | |
Set cell(s) mask in specified range | |
Select cell(s) with specified condition | |
Worksheet Clear | |
Update the width of columns in worksheet | |
Create a copy of the specified worksheet | |
Remove Duplicated Rows:Remove rows in a worksheet based on duplications in one column | |
Delete specified worksheet rows | |
Hold Duplicated Rows:Hold rows in a worksheet based on duplications in one column | |
Update the contents in the worksheet to the linked table on graph | |
Copy XY data from one worksheet to another and merge mismatching X by inserting empty rows when needed | |
Reset short names for all columns in worksheet | |
Pivot Table:Create a pivot table to visualize data summarization | |
Get or set the worksheet property through a tree from script | |
Worksheet Range Copy with options to copy labels | |
Find and replace cell value in a worksheet | |
Set Label Value | |
Set row(s) height | |
Sort an entire worksheet or selected columns | |
Split specific workbooks into multiple workbooks with single sheet | |
Transpose the active worksheet | |
UnStack grouped data into multiple columns | |
Worksheet Extraction |
Name | Brief Description |
|---|---|
Create/Edit/Remove/Load Query | |
Import data from database through the query | |
Show database connection information | |
Import to certain top rows for previewing the data from the query |
Name | Brief Description |
|---|---|
Find Baseline region in XY data | |
Compare two datasets to the same fit model | |
Compare two fit models to the same dataset | |
Simple Linear Regression for LabTalk usage | |
Polynomial fit for LabTalk usage | |
Get NLFit tree from a fitting report sheet | |
Start a LabTalk nlfit session | |
Start a LabTalk nlfit session on matrix data | |
Start a LabTalk nlfit session and fit multiple dependent/independent variables function. | |
Start a LabTalk nlfit session on xyz data | |
Terminate an nlfit session | |
Iterate the nl fit session | |
Set Automatic Parameter Initialization option | |
Control NLFIT output quantities and destination. | |
Open the Fitting Parameter dialog. |
Name | Brief Description |
|---|---|
Paste a graph from existing graphs as an EMF object onto a layout window | |
Add a linked table to graph | |
Paste a worksheet from existing worksheets onto a layout window | |
Add a new XY Scale object to the layer | |
Add a scrollbar object to graph to allow easy zooming and panning | |
Add a pair of inverted triangles to the bottom X-Axis that allows easy rescaling | |
Move graphs into worksheet | |
For a given X value, find all Y values from all curves and add them as a row to a worksheet | |
Create a new layer on the active graph | |
Align some destination layers according to the source layer. | |
Arrange the layers on the graph. | |
Fill layer background color | |
Copy scale from one layer to another layer | |
Extract specified layers to separate graph windows | |
Link several layers to a layer. | |
Manage the organization of layers in the active graph | |
Set position of one or more graph layers. | |
Set ratio of layer width to layer height. | |
Set axes scales for graph layers. | |
Set unit for graph layers. | |
Swap the positions of two graph layers. | |
Toggle the left axis and bottom axis on and off. | |
Center zooms on layer | |
Update or reconstruct legend on the graph page/layer | |
Merge selected graph windows into one graph | |
Create a new graph page with insets | |
Add a new layer to graph | |
Create a new graph with panels | |
Apply Palette to &Color Map:Apply palette to the specified graph with an existing palette file | |
Pick XY data points from a graph | |
Set speed mode properties |
Name | Brief Description |
|---|---|
Apply auto leveling to image | |
Balance the color of image | |
Adjust the brightness of Image | |
Apply user-defined color leveling to image | |
Replace color within pre-defined color range | |
Adjust contrast of image | |
Apply lookup table function to image | |
Apply gamma correction to image | |
Adjust the contrast of image, using histogram to calculate the median. | |
Apply histogram equalization | |
Adjust hue of image | |
Invert image color | |
Adjust the levels of image | |
Adjust Saturation of image |
| Name | Brief Description |
|---|---|
Image histogram |
Name | Brief Description |
|---|---|
Blend two images into a combined image | |
Perform math function on image pixel values with a factor | |
Apply morphological filter to numeric Matrix or grayscale/binary image | |
Perform logic operation on pixels | |
Replace background color | |
Simple Math operation between two Images | |
Subtract image background |
Name | Brief Description |
|---|---|
Convert a grayscale image to a numeric data matrix | |
Auto convert to binary | |
Convert to binary | |
Convert to a grayscale image | |
Convert to binary using dynamic threshold | |
Print out the given image's basic parameters in script window | |
Apply palette to image | |
Merge RGB channels to recombine a color image | |
Split color image into R,G, B channels | |
Convert part of an image to black and white using threshold | |
Convert a numeric matrix to a grayscale image |
Name | Brief Description |
|---|---|
Crop image to a rectangle area | |
Flip the image horizontally or vertically | |
Resize image | |
Rotates an image by a specified degree | |
Shear the image horizontally or vertically | |
Trim image with auto threshold settings |
Name | Brief Description |
|---|---|
Apply average filter to image | |
Clear the image | |
Detecting edges | |
Apply Gaussian filter | |
Apply median filter | |
Add random noise to image | |
Increase or decrease image sharpness | |
Apply unsharp mask | |
Apply user defined filter |
Name | Brief Description |
|---|---|
Batch processing with Analysis Template to generate summary report | |
Export worksheet data as ASCII file | |
Export graph(s) to graphics file(s) | |
Export the active Image into a graphics file | |
Export matrix data as ASCII file | |
Export workbook data as National Instruments TDM and TDMS files | |
Export worksheet as multipage PDF file | |
Export data as Microsoft PCM wave file | |
Export the active sheet as raster or vector image file | |
Export the active Image into a gif file | |
Import ASCII file/files | |
Import binary 2d array file | |
Import CDF file. It supports the file version lower than 3.0 | |
Import csv file | |
Import Data Translation Version 1.0 files | |
Import EDF file | |
Import EarthProbe (EPA) file. Now only EPA file is supported for EarthProbe data. | |
Import Microsoft Excel 97-2007 files | |
Import Famos Version 2 files | |
Import file with pre-defined filter. | |
Import HDF5 file. It supports the file version lower than 1.8.2 | |
Import HEKA (dat) files | |
Import WaveMetrics IgorPro (pxp, ibw) files | |
Import a graphics file | |
Read information related to import files. | |
Import JCAMP-DX Version 6 files | |
Import SigmaPlot (JNB) file. It supports version lower than SigmaPlot 8.0. | |
Import KaleidaGraph file | |
Import Matlab files | |
Import ETAS INCA MDF (DAT, MDF) files. It supports INCA 5.4 (file version 3.0). | |
Import Minitab file (MTW) or project (MPJ). It supports the version prior to Minitab 13. | |
Import netCDF file. It supports the file version lower than 3.1. | |
Import National Instruments DIAdem 10.0 dat files | |
Import National Instruments TDM and TDMS files(TDMS does not support data/time format) | |
Import *.ODQ files. | |
Import pCLAMP file. It supports pClamp 9 (ABF 1.8 file format) and pClamp 10 (ABF 2.0 file format). | |
Import nCode Somat SIE 0.92 file | |
Import Thermo File | |
Import Princeton Instruments (SPE) file. It supports the version prior to 2.5. | |
Import waveform audio file | |
Insert Images From Files:Insert graphic file(s) into Graph Window | |
Make an X-Function import filter | |
Plot pClamp data | |
Re-import current file |
Name | Brief Description |
|---|---|
Average or concatenate multiple curves | |
Average or concatenate multiple curves | |
Perform cubic B-Spline interpolation and extrapolation | |
Setting column value | |
Calculate derivative of the input data | |
Apply customized filter to a Matrix | |
Perform integration on input data | |
Calculate the volume beneath the matrix surface from zero panel. | |
Perform 1D interpolation or extrapolation on a group of XY data to find Y at given X values using 3 alternative methods. | |
Perform linear interpolation and extrapolation | |
Perform trace/periodic interpolation on the data | |
Perform 1D interpolation/extrapolation on a group of XY data to generate a set of interpolated data with uniformly-spaced X values using 3 alternative methods. | |
Perform 3D interpolation | |
Perform trace interpolation on the XYZ data | |
Calculate the area of the matrix surface | |
Perform simple arithmetic on data | |
Apply median filter to a matrix | |
2D Interpolate/Extrapolate on the matrix | |
Generate (pseudo) inverse of a matrix | |
Normalize the input data | |
Calculate the area of an enclosed plot region | |
Reflect a range of data to certain interval | |
Normalize Columns:Normalize the input range column by column | |
Apply predefined special filter to a matrix | |
Perform spline interpolation and extrapolation | |
Perform simple arithmetic on one complex number | |
Perform simple arithmetic on two complex numbers | |
Perform simple arithmetic on input data | |
Normalize the input vector | |
Add white (Gaussian) noise to data | |
Calculate the area of the XYZ surface |
Name | Brief Description |
|---|---|
Perform coherence | |
Compute the convolution of two signals | |
Compute 1D correlation of two signals | |
2D correlation. | |
Compute the deconvolution | |
Get envelope of the data | |
Perform 2D FFT filtering | |
Perform FFT Filtering | |
Perform Hilbert transform or calculate analytic signal | |
Smooth the matrix by expanding and shrinking | |
Perform smoothing to irregular and noisy data. |
Name | Brief Description |
|---|---|
Fast Fourier transform on input vector (discrete Fourier transforms) | |
Two-dimensional fast Fourier transform | |
Perform inverse Fourier transform | |
Inverse two-dimensional discrete Fourier transform | |
Perform Short Time Fourier Transform | |
Transfer phase angles into smoother phase |
Name | Brief Description |
|---|---|
Evaluation of continuous wavelet functions | |
Computes the real, one-dimensional, continuous wavelet transform coefficients | |
1D discrete wavelet transform | |
Decompose matrix data with wavelet transform | |
Inverted 1D Wavelet Transform from its approximation coefficients and detail coefficients. | |
Reconstruct 2D signal from coefficients matrix | |
Multilevel 1-D wavelet decomposition | |
Remove noise using wavelet transform | |
Smooth signal by cutting off detailed coefficients |
Name | Brief Description |
|---|---|
Create baseline automatically | |
Pick multiple peaks from a curve to fit Guassian or Lorentzian peak functions | |
Open Peak Analyzer | |
Peak Analysis batch processing using Analysis Theme to generate summary report | |
Pick peaks on the curve. |
Name | Brief Description |
|---|---|
Perform statistics on columns | |
Calculate correlation coefficients of the selected data | |
Calculate Frequency for discrete/categorical data | |
Calculate frequency counts | |
One sample Kolmogorov-Smirnov test for normality | |
Lilliefors normality test | |
Calculate moments on selected data | |
Calculate moments on selected data | |
Calculate quantiles on selected data | |
Calculate descriptive statistics on selected data | |
Calculate quantiles on selected data | |
Calculate quantiles on row(s) | |
Descriptive statistics on row(s) | |
Calculate descriptive statistics on selected data | |
Shapiro-Wilk test for normality:Shapiro-Wilk Normality test |
Name | Brief Description |
|---|---|
Perform a two-sample t-test on rows | |
One-Sample t-test | |
Two-Sample t-test | |
Pair-Sample t test | |
Chi-squared variance test | |
Perform a F-test. |
Name | Brief Description |
|---|---|
Perform a Friedman ANOVA | |
Perform a two-sample KS-test on the input data. | |
Perform Kruskal-Wallis ANOVA | |
Perform median test | |
Preform Mann-Whitney test | |
Perform paired sample sign test | |
Perform a one-sample Wilcoxon signed rank test | |
Preform paired sample Wilcoxon signed rank test |
Name | Brief Description |
|---|---|
Perform a Kaplan-Meier (product-limit) analysis | |
Perform a Cox Proportional Hazards Model analysis | |
Perform a Weibull fit on survival data |
Name | Brief Description |
|---|---|
customMenu | Open Custom Menu Editor Dialog. |
Get plot selections in data plot | |
Get selections in worksheet | |
Apply a theme to a graph or some graphs. | |
Apply a theme to a worksheet or some worksheets. | |
Edit the specific theme file using Theme Editing tool. | |
X-Function to run the operation framework based classes. |
Name | Brief Description |
|---|---|
Compare two binary files and print out comparison results | |
Prompt user to select a file with an Open file dialog. | |
Prompt user o select a path with an Open Path dialog. | |
Prompt user with an Save as dialog. | |
Create a .txt file that contains notes or records of the user's work through a string | |
Searches for a file or files. | |
Searches for a folder or folders. | |
Prompt user to select an image with an Open file dialog. | |
Save a graph/workbook/matrix window to a template | |
Copy a web page to a local file |
Name | Brief Description |
|---|---|
Change or show working directory | |
Assigns a specified index to the current working directory, or lists all assigned indices and associated paths. | |
Used to create a debug log file. Turn on only if you have a problem to report to OriginLab. | |
list script (ogs) and x-functions (oxf) in current working directory. | |
Set up the Group Folder location for both group leader and members | |
Group Leader's tool to manage Group Folder files | |
Install an Origin XML Package | |
Change Origin Display Language | |
Lists x-function categories, or all x-functions in a specified category. | |
Update Module License:Add module license file into Origin | |
Lists x-functions (by name, keyword, location etc) | |
Create a new folder in the current working directory | |
Get and set tree stored in operation object | |
Open the Project Browser | |
Change project explorer directory | |
Lists current project explorer folders and workbooks | |
Load an Origin project into an existing folder in the current project | |
Create new folder | |
Move specified page of folder to specified folder | |
Find Project Explorer path | |
Rename.. | |
Delete a subfolder under the active folder in PE | |
Save a folder from the current project to an Origin project file | |
Export all graphs in folder to PowerPoint Slides | |
Slide Show (full screen view) of all graphs in folder | |
Export selected graphs to PowerPoint Slides | |
Slide Show (full screen view) of selected graphs | |
Create shortcuts for selected windows in Favorites folder | |
Go to the original folder where this page locates | |
Transfer user files in Origin75 to Origin8 | |
Update x-function list in specified location |