3.2 Onset Of Slope

Summary

Onset Of Slope app is used to estimate the onset of slope change in a graph curve. This app allows you to place up to four Region-of-Interest (ROI) objects on a graph, and perform a linear regression on data points within each ROI. Each ROI should delineate a line segment of uniform slope. The app then calculates the intersection points of adjacent linear regression lines.

Tutorial

  1. Create a new workbook by clicking New WorkBook button New Workbook button.png on the Standard toolbar. With the empty worksheet activated, select menu Data: Connect to File: Text/CSV. Browse to the folder <Origin Installation Directory>\Samples\Curve Fitting\ and select the data file Polynomial Fit.dat. Accept default settings to import.
  2. Click column C's header to select this column. Choose menu Plot> 2D Basic: Scatter to make a scatter plot.
    Onset Of Slope 00.png
  3. Click the Onset Of Slope icon Onset Of Slope icon.png in the Apps Gallery.
  4. In the opened dialog,
    • set No. of Rects to 3, which will put 3 ROI boxes to the graph
    • set the From and To for each ROI as follow:
    • Rect 1 from 0 to 5,
    • Rect 2 from 5 to 15,
    • Rect 3 from 15 to 23.
    Note that after ROI boxes are added to the graph, you can always move or resize the rectangle boxes to adjust their ranges.
    Onset Of Slope 01.png
  5. Keep other settings as default and click OK button. 3 ROI boxes are added to the graph. Linear regression is performed to fit the data inside each section, and the intersection point of fitted lines of adjacent sections are found and tagged to the graph.
    Onset Of Slope 02.png
  6. Click the triangle button at the top-right corner of the 3rd ROI to bring up the context menu. Choose Tag Lines. After clicking the X button to remove ROI boxes, the fitted lines and tagged intersection points remains on the graph.
    Onset Of Slope 03.png

    Also, the related result data is put to a new worksheet.
    Onset Of Slope 06.png
  7. Finally let’s customize the text labels a bit. Double click on the label to open the Plot Details dialog. On Label tab, change Color to blue, and Size to 22, then click OK.
    Onset Of Slope 04.png

    And get the final result as below picture shows.
    Onset Of Slope 05.png