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
 Align labels relative to anchor points
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dukeloo

Germany
4 Posts

Posted - 11/14/2017 :  4:04:40 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2017 (64-bit) SR1
Win 8.1

Hi,

When placing lables e.g.

label -p 50 50 test;

the text will be positioned with the top left corner at the specified position.
I was wondering if there is an option to position the labels with any other corner as anchor point.
I have a lot of layers with labels of different lenght in all corners of them.
This would make it much easier for me to align my labels to the layer border.

thanks

yuki_wu

896 Posts

Posted - 11/14/2017 :  10:47:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Origin do not have such options for label -p, but I think you could try the selection command to align the objects, for example:
label -p 50 50 -n text1 AAAAA;
label -p 20 70 -n text2 BBBBB;
page -sa text1;
page -sa text2;
select -a r;

select -a: https://www.originlab.com/doc/LabTalk/ref/Selection-cmd#-a.3B_Align_objects_according_to_the_specified_parameter

page -sa: https://www.originlab.com/doc/LabTalk/ref/Page-cmd#-sa.3B_Select_the_specified_object_on_the_page_and_preserve_the_status_of_all_current_objects

Hope it can be some helps!

Regards,
Yuki
OriginLab
Go to Top of Page

dukeloo

Germany
4 Posts

Posted - 11/15/2017 :  03:29:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Yuki,

thanks, this can help with keeping the labels aligned.
I still can't define the distance between the right end of the label to the right border of the axis but I can figure the coordinates out manually in my case.

Best,
Tim

Edited by - dukeloo on 11/15/2017 03:35:19 AM
Go to Top of Page

n/a

6 Posts

Posted - 12/13/2017 :  10:09:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi all, my name is Arsen)) I am a new member here )) thanks for your post , nice to meet you all here, in this web site


:)
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