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
 Plotting a quadruple plot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

David_G

2 Posts

Posted - 01/03/2018 :  11:40:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello!

In OriginPro, it's possible to draw ternary plots for ternary systems. However I need to draw a 3D plot (tetrahedron) for a quadruple system. Is this somehow possible in OriginPro? If not, do you have any idea how such diagrams may be plotted? I added an example.



I appreciate every answer, thank you.

Best regards
David

Chris D

428 Posts

Posted - 01/03/2018 :  12:58:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi David,

Unfortunately at this time such graphs cannot be made using Origin. However, we have had requests for this type of graph in the recent past and are researching how we can implement them in future versions.

As for other softwares that could produce such graphs, I'd have to Google around and probably wouldn't find any more products than you'd find by similar Googling.

Sorry we can't help you.



Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

David_G

2 Posts

Posted - 01/08/2018 :  04:54:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Chris,

thank you very much for your answer and the information. It would be great if these graphs would be implemented in future versions.

Best regards
David
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 01/08/2018 :  4:52:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi David,

You can draw a tetrahedron by Origin with a relatively easy script. Then, you can add a 3D scatter/trajectory
plot if your can convert the quadruple coordinates to the Cartesian 3D coordinates according to the shape of
tetrahedron.

Here is a sample script to make a regular tetrahedron from the given XYZ worksheet which contains the
4 sets of coordinates of the vertices.
////////////////// Data Preparation ////////////////////////
%K=%H;
worksheet -a 4;
wks.col5.type=4; wks.col7.type=6;
col(4)={1,3,2,1,2,4,1,0,2,3,4,2,3,1,4,3};   //Triangle Patch data
range -v ri = 1[1]:3[3]; range -v ro = 5[1]:7[3]; ro=ri;  // Edge Lines data
range -v ri = 1[1]:3[1]; range -v ro = 5[4]:7[4]; ro=ri;  // Edge Lines data
range -v ri = 1[4]:3[4]; range -v ro = 5[5]:7[5]; ro=ri;  // Edge Lines data
range -v ri = 1[2]:3[4]; range -v ro = 5[6]:7[8 ]; ro=ri;  // Edge Lines data
////////////////// Surface Plot ///////////////////////////////
range rS=[%K]!col(3);
plotxyz iz:=rS plot:=103 ogl:=<new template:=glMESH.otp>;  //Plot Color Fill Surface
%M=%H;
set %K_C -spi 2; 
set %K_C -b3cc 5; //Set the color of the face
////////////////// Edge Plot //////////////////////////////////
range rE=[%K]!col(7);
plotxyz iz:=rE plot:=240 ogl:=<%M template:=gl3DLINE>;  //Plot edge line
set %K_G -l 1;   //To show the connection lines
set %K_G -w 1000; //Line width
set %K_G -c 1; //Line symbol color
set %K_G -z 0; //Line symbol size
set %K_G -lo 0; //Hide drop line
layer -a;
//////////////////////////////////////////////////////////////////




(Note: Currently the transparency cannot be controlled by script.)

Hope this helps.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 01/08/2018 5:00:10 PM
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