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

pcvolkmar

Germany
Posts

Posted - 08/16/2005 :  05:09:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):
Operating System: Win xp

Hello,
I'm working with a few Graphics,all of them created from the same worksheet
I would like to change the name (X/Y Axis title) for a new one, from the Script.

I try to do with Axis Object:

Graph1!layer1.x.labeltext$="nphot";

first my script creat a few graphics, and the names are:
Graph1, Graph2 ......
Somebody can tell an advice?
Thank a lot, Paula.

Mike Buess

USA
3037 Posts

Posted - 08/16/2005 :  4:57:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Paula,

I'm not sure what property layer.x.labeltext$ controls but the axis titles are normal text labels called xb (lower), xt (top), yl (left) and yr (right). There are two ways you can change their text and the graph window (and layer) must be active for both...

win -a Graph1; // activate graph window
lay -s 1; // select layer 1 (unnecessary if you only have one layer)
label -xb "nphot"; // this creates the label if it doesn't already exist
plot -c; // update graph window
// - or -
xb.text$ = "nphot"; // the label must already exist (update is not necessary)

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/16/2005 5:06:02 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