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
 updating axis scales
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wallacej

UK
Posts

Posted - 01/19/2005 :  08:35:19 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have a labtalk script that generates a report from an Excel worksheet. There are several graphs on the report.
I am trying to automate the update of the x axis scale on one of the graphs when the user clicks a button. The scale should be set as the same of that on another graph when the button is clicked.

Can anybody point me in the right direction, I only need help with the part where the x axis scale is updated, not with the use of buttons.

Thank You

Mike Buess

USA
3037 Posts

Posted - 01/19/2005 :  10:21:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following script copies the X axis scale from Graph1/layer1 to Graph2/layer1.

win -a Graph1;
xFrom = layer1.x.from;
xTo = layer1.x.to;
win -a Graph2;
layer1.x.from = xFrom;
layer1.x.to = xTo;

You can also use the system variables X1 and X2 but there are many more properties of the layer.axis object that you might find useful.

Mike Buess
Origin WebRing Member
Go to Top of Page

wallacej

UK
Posts

Posted - 01/19/2005 :  11:34:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank You again

That really helped
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