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
 plotxy
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

shyamigcar2

India
25 Posts

Posted - 07/04/2017 :  09:46:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to plot with the labels on the points using labtalk scripts?
for example
Cruc. No. nCd/nZr temp.
No. °C
1 3.92911 505
2 4.51606 515
3 4.59111 525
4 4.86532 535
5 4.73083 545
6 4.89554 555
7 4.84366 567
8 4.76426 578
9 4.7412 588
10 4.76452 599
11 4.741 609
12 4.74485 620
13 4.71048 631
14 3.88914 642
15 3.95764 652


I wanted to plot using col(2) as X axis and col(3) as y axis and col(1) as labels for the points.

Is there any labtalk scripts that will do this for me?

yuki_wu

896 Posts

Posted - 07/05/2017 :  01:19:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

worksheet -t 2 4; //Set col(2) as X
plotxy iy:=(2,3); 
set %c -q 1; // Turn the data label on
set %c -qm 524391; //  Set label form as col(A);


Note that to map the label to a dataset, set value = 101 + number-of-columns-to-the-right for color index dataset located on the right side of data or value = 524389 + number-of-columns-to-the-left for color index dataset located on the left side of data.

Hope it helps.

Regards,
Yuki
OriginLab
Go to Top of Page

shyamigcar2

India
25 Posts

Posted - 07/05/2017 :  09:12:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by yuki_wu

Hi,

worksheet -t 2 4; //Set col(2) as X
plotxy iy:=(2,3); 
set %c -q 1; // Turn the data label on
set %c -qm 524391; //  Set label form as col(A);


Note that to map the label to a dataset, set value = 101 + number-of-columns-to-the-right for color index dataset located on the right side of data or value = 524389 + number-of-columns-to-the-left for color index dataset located on the left side of data.

Hope it helps.

Regards,
Yuki
OriginLab




Thanks for the reply.

I would like to know more about the command lines, where it is located.

Thanking you
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/05/2017 :  12:22:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here is how to find info about Origin, in your case, search, google the following
quote:

originlab labtalk plotxy



CP
Go to Top of Page

shyamigcar2

India
25 Posts

Posted - 07/06/2017 :  09:43:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It does not give information about the command.

set %c -q 1;

Thank you for the reply.


quote:
Originally posted by cpyang

Here is how to find info about Origin, in your case, search, google the following
quote:

originlab labtalk plotxy



CP


Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/06/2017 :  7:08:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by shyamigcar2

It does not give information about the command.

set %c -q 1;

Thank you for the reply.




For that, you google with

quote:
Originlab labtalk set command


and the look for the 10 Data Plot Label Options section for the various data label controls.


CP
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