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
 Edit range of dataset

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
stevechang Posted - 04/03/2002 : 03:59:56 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 04/09/2002 : 12:06:40 PM
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
stevechang Posted - 04/09/2002 : 05:16:41 AM
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;
Mike Buess Posted - 04/03/2002 : 5:43:33 PM
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

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