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 |