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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 rename the axis!

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
pcvolkmar Posted - 08/16/2005 : 05:09:59 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 08/16/2005 : 4:57:07 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000