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
 XYZ contour plot with LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

neophilus

Germany
4 Posts

Posted - 08/15/2011 :  04:52:43 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8G SR6
Operating System: WinXP Pro

Hi,

I'm trying to get a TriContour plot of XYZ data through LabTalk. No success so far. Best result was with:
plotxy iy:=3 plot:=226 ogl:=[<new template:=TriContour.otp>];
But then I have to manually add the dataset (z-values).
layer -i book23_b;
doesn't work just gives me a black quarter circle into the existing plot.

worksheet -p 226;
doesn't work either, just gives me the dialog.

Any suggestions?

Penn

China
644 Posts

Posted - 08/15/2011 :  06:06:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please try the following script:

worksheet -p 243 TriContour.otp;


Penn
Go to Top of Page

neophilus

Germany
4 Posts

Posted - 08/15/2011 :  10:55:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks,

this is a good combination. But before I have to select the column. At the moment I do it this way:
range rW=[%H]1!;
rW.colSel(3,1);
worksheet -p 243 TriContour.otp;
Any better ideas?

Thanks a lot!
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 08/15/2011 :  2:10:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

For the current worksheet, the following can shorten a line:
wks.colSel(3,1);
worksheet -p 243 TriContour.otp;


--Hideo Fujii
OriginLab
Go to Top of Page

neophilus

Germany
4 Posts

Posted - 08/16/2011 :  04:12:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried that before, but it gives me an error:
>>wks.colSel(3,1);
#Command Error!
>>
???
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 08/17/2011 :  3:37:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I first suspected that since you're using German version of Origin, maybe "3,1" was interpreted as a number 3 1/10; However, as just have tested with Origin 8.5.1 German, it worked okay with no errors.
Anyway, you can try to separate arguments by spaces like wks.colSel(3 , 1) ?? Otherwise I have no idea. Possibly by some reason, your part of Origin is broken? :{ Is everything else working okay?

--Hideo Fujii
OriginLab
Go to Top of Page

neophilus

Germany
4 Posts

Posted - 08/18/2011 :  04:45:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Hideo,

I will test it with 8.5 on a colleagues computer. Right now everything works fine. I use a different statement now:
range rW=!;
rW.colSel(3,1);


Kind Regards!
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