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
 addline in 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

Sprenger

Germany
15 Posts

Posted - 11/15/2016 :  09:51:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

yuki_wu

896 Posts

Posted - 11/15/2016 :  9:59:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Sprenger

Germany
15 Posts

Posted - 11/17/2016 :  05:35:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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