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

stevechang

Taiwan
9 Posts

Posted - 04/03/2002 :  03:59:56 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would like to edit ranges of my dataset in a 2D scatter grapdh.
How kinds of scrpit commands should I look into?
Thanks in advance.

Steve

Mike Buess

USA
3037 Posts

Posted - 04/03/2002 :  5:43:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'm not sure what type of editing you'll be doing, but the set command is used to define a dataset range for some LabTalk commands (sum(), for example). This sets the range to rows ii1 through ii2...

set dataset -b ii1 -e ii2;

I hope that helps.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/03/2002 17:43:58
Go to Top of Page

stevechang

Taiwan
9 Posts

Posted - 04/09/2002 :  05:16:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much Mike, it does work.
My codes with a little modification, as follows:
[Main]
// Code to set dataset range and plotted x-axis
A_R=10;B_R=30; //set range of start and end numbers
A_A=18;B_A=48; //set X-axis from and to numbers
Graph1!page.active=2; //set active layer
Set data1_colA -b A_R;
Set data1_colA -e B_R;
Layer.X.from=A_A;
Layer.X.to=B_A;
break;
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/09/2002 :  12:06:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Steve,

I'm glad you got it working. However, it's probably not a good idea to use variable names containing underscores. Such notation is usually reserved for dataset names and using it for a variable name might come back to bite you some day.

Mike Buess
Origin WebRing Member
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