#### File Exchange > Graphing >    2D Smoother

Author:
OriginLab Technical Support
12/15/2017
Last Update:
6/5/2023
1171
Total Ratings:
19
File Size:
604 KB
Average Rating:
File Name:
2D Smoother.opx
File Version:
1.50
Minimum Versions:
Free
Type:
App
Summary:

Perform smoothing of XY data plots

Screen Shot and Video:
Description:

This app lets you perform smoothing of XY data plots on a graph.
The App can operate on a single data plot, or on multiple data plots by internally combining the data.

Installation

Download the file 2D Smoother.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.

Operation

To launch this app, activate a 2D XY plot with one or more data plots and click on the app icon.
The left panel lists existing plots. You can select one or more plots as input.
If Combine & Sort is ON, data will be combined and sorted before further operation.

There are 3 tabs in the dialog for various operations.
You can add one or more smoothed lines by changing settings and clicking on the Add button.

1. Connected Line
This method simply connects the data points using a chose line style.
Select the line type from the drop-down list:
• Cubic Spline: this option is enabled when there are no more than 900 points and they are strictly in ascending/descrending order.
• B-Spline
• Akima Spline
• Bezier
• Modified Bezier
2. Trendline
This method adds a smoothed line by performing curve fitting of the data points.
Select the fitting type from the drop-down list.
You can display the corresponding equation as a label next to the to the end of the trendline by checking the Add Equation as Label checkbox. Adding R-squared as label is supported as well.
• Linear: Performs linear fitting on the data
$$y=ax+b$$
You can fix the intercept to a particular value by checking the corresponding checkbox.
• Polynomial: Performs polynomial fitting on the data.
The polynomial order can be between 2 and 6.
You can fix the intercept to a particular value by checking the corresponding checkbox.
• Power: Performs apparent fit on the data when Fix Y Offset at Zero is checked:
$$\ln\left(y\right)=\ln\left(a\right) + b\ln\left(x\right)$$
Otherwise
$$y=a+bx^c$$
• Logarithmic: Perform apparent fit on the data when Fix X Shift at Zero is checked:
$$y=a+b\ln\left(x\right)$$
Otherwise
$$y=a+b\ln\left(x+c\right)$$
• Exponential: Perform apparent fit on the data when Fix Y Offset at Zero is checked:
$$\ln\left(y\right)=\ln\left(a\right)+bx$$
Otherwise
$$y=y_0+Ae^{k\left(x-x_0\right)}$$
• Piecewise Linear: Performs 2 or 3 segment linear fit to the data.

3. Smoothed Line
The available smoothing methods are:
• Moving Average
• Savitzky-Golay
• Lowess
• Loess
• Whittaker (Pro)
Note smoothed line works better for a large number of data points.

v1.5 Update DLL dependencies.
v1.4 Improved Whittaker smoothing (since Origin 2022. Pro only)
v1.3 Whittaker smoothing (since Origin 2021b. Pro only)
v1.1 Output R-squared value.

04/10/2023ZHANG Meng-mengno

03/04/2023qinxiaoxue

03/03/2022lin bb

02/15/2022yinmonkeyNOT Support Low Versions

12/27/2021OriginLabHi faithyoung,

12/26/2021faithyoung有没有低版本点的，比如2020pro的啊

11/05/2021258096NO

11/05/2021258096NO

10/22/20212219250386good

10/14/2021OriginLabHi gdlgdl4,

Origin 2022 has not been released, would you please consider to use this app in Origin 2021b, or just wait for our official release on Origin 2022?

Thanks,
OriginLab

 1 2