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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 3D plot HELP!!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sheffield_phys

2 Posts

Posted - 03/21/2012 :  09:31:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page

sheffield_phys

2 Posts

Posted - 03/24/2012 :  07:46:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot for your help Easwar. I have managed to get a sensible looking plot now

Sheffield_phys
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000