13 Gadgets

Gadgets provide a quick and easy way to perform exploratory analysis on plotted data. The concept is simple: While each Gadget has a specific purpose, each is built around applying a set of customizable analysis operations to a range of plotted data defined by a movable, resizable, region-of-interest (ROI) object.

You can drag to modify the ROI at any time, then change your analysis options and recalculate results by clicking the arrow button in the upper-right corner of the ROI and choosing one of the menu options. For general access to Gadget formatting and analysis options, choose Preferences at the bottom of the context menu. Use the Preferences Dialog Theme box to save a group of Gadget settings to a Theme file.

Multiple Gadgets are supported on a graph. You can distinguish ROIs by giving each a different color. Click on an ROI object to bring it forward. When an ROI is selected, you can use the TAB key to switch the ROI.

Grand image gadgets 2c.png

Origin 2016 introduced add-on tools called Apps. Since being introduced, many new exploratory and analysis-related tools have been added to OriginLab's File Exchange and more tools are being released all the time. Please visit the File Exchange to review available tools.

Origin Gadgets

The Gadgets main menu is available when a graph window is active. There are 14 gadgets available in Origin.

Cluster Gadget View statistics on points inside or outside of a graphically-defined region-of-interest (rectangular, circular/elliptical or arbitrarily-shaped). OriginPro Symbol.png
Differentiate Gadget Calculate and plot the nth-order derivative of selected data.
FFT Gadget View FFT spectrum of selected data.
Integration Gadget Calculate the area under a curve, or between two curves.
2D Integration Gadget Calculate the 2D integration for a contour or image graph created from matrix or XYZ worksheet data. OriginPro Symbol.png
Interpolate Gadget Perform linear, spline, b-spline or Akima spline interpolation of selected data.
Intersect Gadget Calculate the intersection points of two or more data plots.
Quick Fit Gadget Perform linear, polynomial, or nonlinear fitting of selected data.
Quick Peaks Gadget Locate peaks, and compute area and other peak properties.
Quick Sigmoidal Fit Gadget Perform Sigmoidal fit of selected data.
Rise Time Gadget Analyzes rise/fall time for the step-like signal. OriginPro Symbol.png
Statistics Gadget Compute and display simple descriptive statistics of selected data on the graph.
Vertical Cursor Gadget Read coordinate values and label data plots across multiple graph layers that share the same X axis.
Image/Contour Profile Analyze the image or contour from matrix data and generate profiles.
Curve Translate Gadget Drag a curve in the vertical or horizontal direction, adjusting source data in the process.


Note:To learn more about these gadgets, see:

Help: Origin: Origin Help > Gadgets

Help: Origin: Origin Help >Matrixbooks Matrixsheets and Matrix Objects > Viewing and Profiling Matrix Data


Tutorial: Using the Integrate Gadget to Output Results to a Worksheet

  1. With a new workbook active, import the file Peaks on Exponential Baseline.dat located in the Samples\Spectroscopy subfolder under the Origin installation folder.
  2. Create a line plot of the data in column B.
  3. With the graph active, go to the main menu and click Gadgets: Integrate....
  4. In the dialog box that opens, click the Baseline tab and select Straight Line from the Mode drop-down list.
  5. Click the Output tab, and under the Output Quantities to node, select Append to Worksheet and clear the other check boxes.
  6. Expand the Quantities node, select None from the Dataset Identifier drop-down list and enable Beginning X and Ending X.
  7. Press OK to close the dialog box. The Region-of-Interest (ROI) rectangle object is added to the graph.
  8. Resize and move the ROI object to cover just the first peak in the data plot, then press the arrow button Right arrow menu button.png located at the top-right of the ROI and select New Output; or press "O" on your keyboard. This will write the parameters for the first peak to a worksheet.
  9. Drag and move the ROI to cover the second peak, and repeat the steps above to generate output for the second peak.
  10. Press the arrow button Right arrow menu button.png again and this time select Go to Report Worksheet. A worksheet with the integration results will open.

GSB Gadget Tutorial.png

Custom Label for ROI Box

Origin supports custom labeling of the ROI Box for the Quick Fit and Statistics gadgets. Custom labels are preserved and updated when you select new output. Further, they can be saved as part of a Dialog Theme.

UG stats gadget custom label.png

Custom Label and Button Size

General Change Label Font Size and Button Size of Any Gadget

To customize the label font size and button size (both the close button and the menu flyout button):

  1. Open \User Files\Origin.ini and search for the [Font] section.
  2. Add two lines to this section as shown in the image below, then save the file with your additions.
  3. Any new Gadgets added to the window should use the new font and button size. Adjust as needed.
UG gadget label button size ini.png

Quick Fit Gadget

  1. Choose a gadget from the Gadgets: Quick Fit menu.
  2. Open the gadget dialog (hint: if the ROI is already added, click the menu button Right arrow menu button.png and choose Preferences).
  3. Click the ROI Box tab and enable Custom Label.
  4. Build your custom label using a mix of (a) literal text (b) escape sequences (e.g. Greek symbols or superscripts) and (c) custom variables. Specify decimal places, etc. using Origin custom formats.
Dialog Label Custom Variable Example
Reduced Chi-Sqr chisqr Chi-Square \g(c)\+(2) = $(chisqr, .2)
R-Square cod R-Squared r\+(2) = $(cod, .2)
Pearson's r r r = $(r, .2)
Y Intercept intercept Y Intercept = $(intercept, .2)
Slope slope Slope = $(slope, .2)
X Intercept xintercept X Intercept = $(xintercept, .2)

Statistics Gadget

  1. Choose Gadgets: Statistics: Open Dialog (hint: if the ROI is already added, click the menu button Right arrow menu button.png and choose Preferences).
  2. Click the Show on Center-Top of ROI Box tab and enable Custom Label.
  3. Build your custom label using a mix of (a) literal text (b) escape sequences (e.g. Greek symbols or superscripts) and (c) custom variables. Specify decimal places, etc. using Origin custom formats.
Dialog Label Custom Variable Example
N n Count = $(n)
Mean mean \g(m) = $(mean, *4)
SD sd \g(s) = $(sd, .2)
Minimum min Min = $(min, .2)
X at Minimum xminy X Min = $(xminy, .2)
Maximum max Max = $(max, .2)
X at Maximum xmaxy X max = $(xmaxy), .2)
Sum sum Sum = $(sum, .2)

Topics for Further Reading