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
 addline in 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
Sprenger Posted - 11/15/2016 : 09:51:12 AM
Origin Ver. 9.3.2.303 and Service Release (Select Help-->About Origin):
Operating System:win OS10

I want to add a vertical, movable line with labtalk
I can do this using addline.
But I have not figured out how I can set the decimal places. This is possible using the normal interface:
vline.x, .3
How do I do that using a script?
Thanks

Frank
2   L A T E S T    R E P L I E S    (Newest First)
Sprenger Posted - 11/17/2016 : 05:35:30 AM
Dear Yuki,
many thanks for your reply.
The solution you provide does not update the label when the line is moved.

But I now was able to figure it out:

addline value:=1000 format:=.0;
will add a moveable line with no decimals in the number of the label

Thanks anyway for your quick help.

Best

Frank
yuki_wu Posted - 11/15/2016 : 9:59:23 PM
Hi Frank,

I am not sure whether you mean to add a label to the line. Please try the following example and see if this applied to you:

win -t plot;
draw -n myline -lm -v 2;
label -s \v($(myline.x,.3));
Text.Connect(myline,0,2);

If not, please post more details, such as the result you desired.

Regards,
Yuki
OriginLab Technical Service

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