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

johannes.kastl

Germany
71 Posts

Posted - 07/19/2013 :  06:54:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

johannes.kastl

Germany
71 Posts

Posted - 07/19/2013 :  07:07:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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