Add Multiple Fitted Curves in A Histogram - Howto Wiki
Add Multiple Fitted Curves in A Histogram - Howto Wiki
Contents
1 Summary
3 Steps
Summary
After you plot a Histogram, Origin allows you to overlay a distribution curve on the binned data by selecting
Normal, Lognormal, Poisson, Exponential, Laplace, or Lorentz from the Type drop-down list in the Data
tab of the Plot Details dialog. If you want to add multiple distribution curves to the Histogram, the procedure
involves a few more steps.
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
1. Highlight the sample data, then open the Frequency Count dialog by selecting Statistics: Descriptive Statistcs: Frequency Count.
Fit peaks
1. Select Col(Counts) and then open the Peak Analyzer dialog from Analysis: Peak and Baseline: Peak Analyzer.
2. In the start page, select Fit Peaks as Goal, then click Next.
3. In the Baseline Mode page, set the baseline as Y=0 when the Custom radio box is checked.
4. 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.
5. 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.
6. 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.
1. Activate the Histogram graph and add a layer by selecting Graph: New Layer(Axes): Right-Y from the main menu.
2. Right-click the Layer2 icon and select Plot Setup from the short menu to open the Plot Setup dialog.
3. Select the sheet FitPeakCurve1 from the top panel, then set col(A3) as X and col(A4) as Y, and add them into the Layer RightY in the
bottom panel.
4. Do the same things for col(A5) and col(A6). After that, both fitted peaks have been added into the Layer RightY.
5. Click OK. Two fitted curves had been added to the Histogram.
6. 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.
7. 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