5.10.11 Add multiple fitted curves in a Histogram
Contents
Summary
Origin allows you to fit the peaks from the result of frequency count. Also, fitted curves can added into the new layer in the Histogram.
What you will learn
- Plotting the Histogram
- Using Frequency Count to do statistics
- Using Peak Analyzer to find peaks and do fitting
- Adding new layers
Steps
Copy and paste the sample data into Origin and set the column as Y (Highlight the column and choose Column: Set As Y from the Origin menu). Plot this data as a Histogram by clicking Plot: Statistics: Histogram from the menu.
Frequency Count
- Highlight the sample data, then open the Frequency Count dialog by selecting Statistics: Descriptive Statistcs: Frequency Count.
- Click OK to finish. A new result sheet will be generated.
Fit peaks
- Select Col(Counts) and then open the Peak Analyzer dialog from Analysis: Peak and Baseline: Peak Analyzer.
- In the start page, select Fit Peaks as Goal, then click Next.
- In the Baseline Mode page, set the baseline as Y=0 when the Custom radio box is checked.
- Click the Next button twice to go to the Find Peaks page. Click the Find button under the Enable Auto Find check box to find two peaks.
- Click the Next button again to open the Fit Peaks page. Click Fit Control at the bottom of this page to open the Peak Fit Parameters dialog.
- In this dialog, the default fitting function is Gaussian, which is the right function for normalizing the data. Close the Peak Fit Parameters dialog and go back to the Peak Analyzer dialog. Click Finish to complete the fitting.
Add the fitted curves
- Activate the Histogram graph and add a layer by selecting Graph: New Layer(Axes): Right-Y from the main menu.
- Right-click the Layer2 icon and select Plot Setup from the short menu to open the Plot Setup dialog.
In order to show all three panels in Plot Setup dialog, please expand Plot Type panel by clicking and expand Available Datapanel by clicking again.
Please refer to Plotting using Plot Setup for more information.
- Select the sheet FitPeakCurve1 from the top panel, then set col(C) as X and col(D) as Y, and add them into the Layer RightY in the bottom panel.
- Do the same things for col(E) and col(F). After that, both fitted peaks have been added into the Layer RightY.
- Click OK. Two fitted curves had been added to the Histogram.
- Double-click the graph to open the Plot Details dialog. Select RightY from the left panel, then open the Link Axes Scales tab in the right panel and select Straight(1 to 1) for both X Axis Link and Y axis Link. Click OK to close the dialog.
- The fitted curves are added into the Histogram with the proper scale. The following is the result graph, with the right Y-axis removed.
Sample Data
-
0.631
0.642
0.652
0.662
0.669
0.676
0.677
0.69
0.691
0.696
0.697
0.699
0.699
0.7
0.7
0.708
0.712
0.718
0.731
0.744
0.749
0.751
0.752
0.753
0.758
0.758
0.759
0.761
0.761
0.763
0.763
0.763
0.765
0.767
0.768
0.768
0.769
0.769
0.77
0.771
0.771
0.772
0.774
0.775
0.775
0.776
0.776
0.776
0.777
0.778
0.779
0.78
0.78
0.781
0.784
0.784
0.785
0.785
0.789
0.789
0.791
0.794
0.795
0.796
0.798
0.798
0.803
0.82
0.831
© OriginLab Corporation. All rights reserved.
Site Map | Privacy Policy | Terms of Use