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
 Align labels relative to anchor points

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
dukeloo Posted - 11/14/2017 : 4:04:40 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
n/a Posted - 12/13/2017 : 10:09:20 AM
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


:)
dukeloo Posted - 11/15/2017 : 03:29:07 AM
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
yuki_wu Posted - 11/14/2017 : 10:47:05 PM
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

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