The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 3-D histograms fitting

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
biechaoxi Posted - 11/01/2012 : 2:56:33 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

Hi, I'd like to generate 3-D histograms like the one attached. Also, I want to fit each histogram with certain kind of function - just like the fitting lines on the attached histograms. What should I do to achieve these? Tutorial with practical examples will be highly appreciated. Thank you in advance!
4   L A T E S T    R E P L I E S    (Newest First)
lusi Posted - 05/28/2015 : 06:13:23 AM
Dear Chao-Xi

I am interesting with this Origin Topic. I have also the similar problem about how to make the 3D histogram (Particle size distribution counting analysis. However, I can not solve it using origin 8. This is the expected picture I would like to share it. Thank You so much for the help.


Regard
lusi
greg Posted - 11/05/2012 : 11:09:29 AM
Without knowing the arrangement of your data, it is difficult to describe how to do this. Maybe you could send us the data and description of exactly what is needed : tech@originlab.com

Working backwards from your image, the histograms would have to come from a matrix of Frequency values with proper X(Loading)/Y(Force) mapping, but the fits would have to be from X(Force)/Y(Frequency) data.

So you have to plot X(Force) vs Y(Frequency) and do a fit of each to get your XY fit curves.

Then you have to get a matrix of X(Loading), Y(Force), Z(Frequency) which you should be able to do with Worksheet : Convert to Matrix.
Use Direct if you have Force and Loading in the first column and first row (or reverse) and the rest of your data is Frequency, otherwise use XYZ Gridding. (You may need to concatenate your values to get them into three columns.) Once you have a matrix, you can create the basic 3D Bars plot of your 'histograms'.

You can add the fits as 3D lines provided you treat the Frequency as Z and the Force as Y, plus provide an X column filled with the proper values for each fit: 10, 100, 1000, etc.

biechaoxi Posted - 11/05/2012 : 09:50:41 AM
Thank you very much, Jessie.

Your reply has been very helpful. Now I've got the general idea about how to create such plot, although I am kind of stuck in step 3 because I am using Origin 8.5 rather than Origin 9 version.

Best regards,
Chaoxi
JessieWoo Posted - 11/04/2012 : 10:55:45 PM
Hi,

From Origin 9, 3D histograms can be generated by selecting “Plot: 3D Symbol/Bar/Vector: 3D Bar” from the menu.
Fitting 3D histograms is not supported. However, you can fit the data with certain function first, and then use the data in the report sheet to add 3D scatter plots (Plot: 3D Symbol/Bar/Vector: 3D Scatter). Connect the symbols to generate the lines (open the Plot Details dialog, in the Line tab enable Connect Symbols).

The following steps are written based on Origin 9. It will use the data in the Gaussian.dat to create 3D bar and add fitting lines to it.
1. New a workbook and import the Gaussian.dat (Sample\Curve Fitting\Gaussian.dat).
2. Insert one column before each column Y. Fill col(2) with “1” and fill col(4) with “2”. Set the columns as XYZYZ.
3. Select the whole worksheet to generate 3D Bar (Plot: 3D Symbol/Bar/Vector: 3D Bar).
4. Select col(3) and use the Gaussian function to fit the data (Analysis: Fitting: Nonlinear Curve Fitting). The data for the fitting line is generated in the report sheet FitNLCurve1.
5. Duplicate the FitNLCurve1 sheet (FitNLCurve2 is created). In the FitNLCurve2 sheet, insert a column before Col(2) and fill it with “1” to locate the fitting line. Set the first three columns as XYZ.
6. Repeat step 4 and step 5 to prepare the other dataset for the fitting line.
7. Active the 3D Bar graph, double click on the layer1 icon to open the Layer Contents dialog.
8. Select the two Z datasets for the fitting lines (created in Step 4~5), set Plot Type as 3D Scatter/Trajectory/Vector, and click the right arrow button to add the plots. Click the Apply button and close the dialog.
9. Double click on the plot to open the Plot Details dialog.
10. On the Original level, go to the Line tab and check the box before “Connect Symbols”. Active the Symbol tab, and set the “Size” as “0” to hide the symbols. Go to the Drop Lines tab, and disable the “Parallel to Z Axis”.
11. Repeat the last step to customize the other scatter plot as line. Click OK.

Best Regard,
Jessie
Originlab Corp.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000