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 surface plot using 2D matrices
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ajha

8 Posts

Posted - 06/15/2020 :  3:41:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi all,

I am struggling to plot the 3D surface using X,Y and Z
variables given in terms of 3 (n x m) 2D matrices. I am aware of how to plot the surface if X,Y, and Z are given in 3 columns vectors. I tried to arrange these 2D matrices into 3 columns vector by mapping through their corresponding indices, but Origin fails to interpolate the surface correctly. I think it is because it loss the parametric information when it is converted from 2D matrices into 1D vectors.

I know the fact that, one can plot 3D surface from three matrices (X,Y and Z) in other plotting tools such as Python, Matlab, Mathcad, gnuplot, etc.

Is there any way to do solve this problem? If so could someone please help me out. I am using OriginPro 2018.

Thank you
Ajay

Ajay

YimingChen

1630 Posts

Posted - 06/15/2020 :  4:28:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You may want to check this page on parametric surface plot:
https://www.originlab.com/doc/Tutorials/3D-ParaSurf-DataColormap

James
Go to Top of Page

ajha

8 Posts

Posted - 06/15/2020 :  6:07:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks James, it worked!
Just wondering if there is a similar way to draw a contour plot from three 2D matrices. Of course, a simple solution would be to plot the 3D surface with contours line and change the azimuth, inclination and roll angles of axes. But if there any other alternative, I would be happy to know.

Many thanks
Ajay
Go to Top of Page

YimingChen

1630 Posts

Posted - 06/16/2020 :  5:26:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Not quite understand your question. If you would like to easily rotate the 3D graph, you can hold on r key and drag mouse to rotate.

James
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