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
 Modifying 3D Plots via 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

bunkytop

USA
7 Posts

Posted - 05/03/2003 :  5:12:33 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have two newbie questions regarding a LabTalk script which
produces 3D Color Fill Surface (Wire Mesh). My Labtalk program generates two matrices (Matrix1 and 2) and they are plotted with these two commands:

worksheet -p 242 mesh //(matrix 2 is already selected)
layer -i "matrix1"

Now there are two happy layers in the 3D plot, of the same color.

I need to add two Labtalk commands at this point:
1) Change the "front color" of the surface of each layer (not background) to whatever I want (e.g. red, blue, yellow).
2) A command to change the Plot Details: Layer: Speed/Size parameters to be "Matrix Data, Maximum points per dimension: 32 points per dimension in the X direction and 256 points per dimension in the Y direction.

I can do this manually each time (tedious), but does anyone know how to do this in labtalk? Thank you.

Christopher

Laurie

USA
404 Posts

Posted - 05/07/2003 :  10:12:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Have you tried making the changes manually and then saving as a template? Select File:Save Template As.

Once you've created the new graph template, you can open it with the following command:

win -t plot NameofTemplate;

so for example if you named your template mesh2, you would use:

win -t plot mesh2;

You can then use the layer -i command to include both matrices in the layer.

OriginLab Technical Support
Go to Top of Page

bunkytop

USA
7 Posts

Posted - 05/10/2003 :  10:38:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

Indeed, that works great. Thanks to you, and also to Scott in Tech Support who talked me through this!

It is a crying shame, however, that these aspects of graphs are not completely accessible through LabTalk or the newer C interface.

Christopher
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