Author |
Topic |
|
sheffield_phys
2 Posts |
Posted - 03/21/2012 : 09:31:00 AM
|
Hi all,
I am new to origin so this may be a bit of a simple question however after hours of messing around I am still getting nowhere.
I am trying to create a 3D plot from data outputted to a .txt file from a C++ programme which I have written. The data is outputted into 3 collumns titled .... Kx Ky and amplitude with the corresponding data in a list below each heading.
I want to plot Kx on the X axis, Ky on the Y axis and amplitude on the Z axis.
Is there a way to do this?? If so could someone please help me out
Thanks a lot, Sheffield_Phys
|
|
easwar
USA
1964 Posts |
Posted - 03/21/2012 : 11:13:30 AM
|
Hi Sheffield_Phys,
With data arranged as XYZ in three columns, you can only plot a contour plot (which uses triangulation) in the current version. We will look into supporting surface plot directly from such data, in a future version.
For now, you need to first grid your XYZ data to create a matrix. To do this, select your Z column and select the menu: Worksheet->Convert to Matrix->XYZ Gridding. Then select a gridding method under the "Gridding Settings" node, change other settings as desired, and create the matrix. Then you can plot that matrix as a surface plot. The Thin Plate Spline method produces a surface that is closest to your data points if your data are very irregularly spaced, and this method also has a smoothing parameter to adjust smoothness of the surface if desired.
Easwar OriginLab
|
|
|
sheffield_phys
2 Posts |
Posted - 03/24/2012 : 07:46:23 AM
|
Thanks a lot for your help Easwar. I have managed to get a sensible looking plot now
Sheffield_phys |
|
|
|
Topic |
|
|
|