4.1.3 Curve Intersection Gadget


Summary

When there is more than one curve in a graph layer, you might want to calculate the intersection data points of these curves. Since Origin 8.6, a new gadget Intersect is available to calculate the intersection points of the input curves on the graph.

Minimum Origin Version Required: Origin 8.6 SR0

What you will learn

This tutorial will show you how to:

  • Use the Intersect gadget on a graph.
  • Tag the intersection points.
  • Output the intersection points to worksheet.

Steps

This tutorial is associated with <Origin EXE Folder>\Samples\Tutorial Data.opj.

  1. Open Tutorial Data.opj and browse to the Curve Intersection Gadget folder in Project Explorer (PE).
  2. Highlight the Col(A)~col(D) in workbook Book6, and then click Plot:Line:Line to plot a line graph.
    Curve Intersection Gadget 01.png
  3. Select Gadgets: Intersect... from the main menu to open the dialog. Go to the Options tab.
    Curve Intersection Gadget 02.png
  4. Check the Intersection Label check box in the Options tab, set Size as 15, set Type as Y and set Rotate(deg.) as 0.
    Curve Intersection Gadget 05.png
  5. Click OK button to go back to the graph window. The yellow ROI box will be added onto the graph.
    Curve Intersection Gadget 03.png
  6. Click the Arrow button Triangle button.png at the top right of the ROI box, select Expand to Full Plot(s) Range from the context menu. The ROI box will be expanded to cover full plot range as shown below.
    Curve Intersection Gadget 04.png
  7. Click the Arrow button Triangle button.png at the top right of the ROI box. Select Preferences... from the context menu to open the Intersect Preferences dialog. Go to the Output To tab and input [Book6]Intersections in the Result Worksheet Name box.
    Curve Intersection Gadget 06.png
  8. Click OK button to go back to the graph window. Click the arrow button Triangle button.png at the top right of the ROI box, select New Output from the context menu.
  9. The results will be output to the Script Window. Click the arrow button Triangle button.png again, select Go To Report Worksheet from the menu. The X and Y coordinates of the intersection points will be listed in the results worksheet.
    Curve Intersection Gadget 07.png