A slightly annoying feature of the standard "fit polynomial" tool that I haven't found a way around is that it adds to the specified domain of the fitted curve. Basically I am trying to have the points of the fit match up with my data points on the x axis.
For example, I am specifying 0.318 as the "XMin" parameter and 0.415 as the "XMax" parameter and the results come out starting at 0.3083 and ending at 0.4247. I can recalculate it to include the differences, but it's kind of annoying. Is there any way to change this behavior?
In order to make the points of the fit match up with your data points on the x axis, you can try the Polynomial Fit Tool.
1) Select Tools:Polynomial Fit. This opens the dialog box. 2)On the settings tab, set Range Marge as 0. It sets the percent outside of the data plot's X value range to create the fit curve (left and right).
Then you can select the data region need fitting, and then Click Fit on the Operation tab to perform a polynomial regression on the selected data plot according to the tool settings.
another quick solution: 1. in origin workspace, Alt+4 to open "code builder" 2. in code builder, browse and open PR.ogs (under Origin root folder) 3. find this line of script: stat.MakeX.margin=10; change it to: stat.MakeX.margin=0; by doing so, the range margin is ultimately set to be zero when you use "fit polynomial" tool.