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 for Programming
 LabTalk Forum
 plot 3d line with script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

thuang

USA
Posts

Posted - 02/14/2006 :  1:32:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hi, i'm trying to plot multiple 3d lines together in origin 7.5 using labtalk. i use:

window -a data;
worksheet -s 1 0 3 0;
worksheet -p 240 3d;

where data is the worksheet and the 1st 3 columns are x, y, and z. i get a 3d scatterplot, but is there a way to connect the dots using script? i tried:

set data_z -l 1;

but it didn't connect the dots. if there is a solution for this, can i also connect the dots when i add more graphs to the first graph when i use:

layer -i240 data_z2;

any help would be greatly appreciated, thanks

Edited by - thuang on 02/15/2006 3:56:23 PM

Hideo Fujii

USA
1582 Posts

Posted - 02/16/2006 :  6:38:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi thuang,

If your graph contains only one plot, you can use a template which you previously saved:
  worksheet -p 240 3Dtest1
Here 3Dtest1 is a template name 3Dtest1.OTP stored in the Origin directory.

If you have more than two plots, you may consider to apply a graph theme by calling a small Origin C code like a piece below (part):
	Page pg = Project.Pages();
pg.ApplyFormat("Themes\\PtConnect.OTH");

There may be better ways, but this is one possibility.

--Hideo
OriginLab



Edited by - Hideo Fujii on 02/16/2006 6:40:37 PM
Go to Top of Page

thuang

USA
Posts

Posted - 02/22/2006 :  3:14:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
well, i'm trying to have multiple plots in the same layer, but i also don't know how to use origin C =/ thanks for the suggestions though, maybe i should start using origin C
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