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
 Select a axis label via labtalk?

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
johannes.kastl Posted - 07/19/2013 : 06:54:22 AM
Hi there,

in http://www.originlab.com/forum/topic.asp?TOPIC_ID=18588 I got a solution to copy formats between objects with labtalk. I could get this solution working with text objects and axis titles, but I failed to copy formats between axes and their labels (the numbers or categories, not the axis titles).

How to select the x-lable with labtalk? How to select the x-axis itself?
page -s layer1.x.label
does nothing, while
page -s xb
selects the title of the x axis.

In my case I have lots of graphs where I need to change the 'special ticks' (or whatever it is called in english). And AFAIK they are not manageable with labtalk directly (in contrast to the e.g. axis scaling).


Thanks in advance,
Johannes

Origin Ver. and Service Release (Select Help-->About Origin): 9.0.0G SR2, Operating System: WinXP
1   L A T E S T    R E P L I E S    (Newest First)
johannes.kastl Posted - 07/19/2013 : 07:07:28 AM
I found the select command, which should return the name of the selected object via
select -g F;%F=
Works with the axis title, the legend and a polyline, but not with the axis itself or the axis label.


BUT:
If I copy the format of the axis label manually, select the axis label in another graph and then use labtalk to paste the format via
run.section(file, pasteFormats);
it works. The special tick is where it should be.

So I just need to get the damn label selected with labtalk... ;-)

regards,
Johannes

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