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
 3D surface plot using 2D matrices

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
ajha Posted - 06/15/2020 : 3:41:57 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 06/16/2020 : 5:26:27 PM
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
ajha Posted - 06/15/2020 : 6:07:41 PM
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
YimingChen Posted - 06/15/2020 : 4:28:54 PM
Hi,

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

James

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