Author |
Topic |
|
ungat
Belgium
Posts |
Posted - 11/15/2005 : 3:12:48 PM
|
[quote] Change the command %R_B += %A_J to %R_B += %A_%A.
Excuse me it doesn't work, there is nothing in %R_B |
|
|
ungat
Belgium
Posts |
Posted - 11/15/2005 : 3:30:20 PM
|
[quote] Change the command %R_B += %A_J to %R_B += %A_%A.
Excuse me I have an other solution to have the average,
how do you do to have Average Multiple Curves of a graph by using script window ? |
|
|
Mike Buess
USA
3037 Posts |
Posted - 11/15/2005 : 4:53:27 PM
|
Graph must be active when you run this...
%Z=""; lay -c; win -t D; %A=%[%Z,#1]; copy xof(%A) %H_A; copy %A %H_B; nn=1; loop (ii,2,count) { %A=%[%A,#ii]; %H_B += %A; nn++; }; %H_B /= nn;
...And this fixes the script in my previous post...
%Z=AB CE MN; win -t D; %A=%[%Z,#1]; copy xof(%A_%A) %H_A; copy %A_%A %H_B; nn=1; for(ii=2;ii>0;ii++) { %A=%[%Z,#ii]; if(%A=="") break; %H_B += %A_%A; nn++; }; %H_B /= nn;
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 11/15/2005 5:05:46 PM
Edited by - Mike Buess on 11/15/2005 5:10:52 PM |
|
|
ungat
Belgium
Posts |
Posted - 11/16/2005 : 05:28:02 AM
|
Hello, thank you very much,
I have another question, how do you indicate in script window Plot Details for Line:
- Connect ?
- Styl ?
- Line Width
- Line Color ?
for example for win -t P; // create graph window layer -i200 Toto_tata;
Thank you again.
|
|
|
Mike Buess
USA
3037 Posts |
Posted - 11/16/2005 : 07:13:07 AM
|
Use the set command. For example,
set Toto_tata -c 2; // color Toto_tata plot red
Help > Programming > LabTalk Language Reference > Command Reference > Alphabetical Listing > Set
Mike Buess Origin WebRing Member |
|
|
ungat
Belgium
Posts |
Posted - 11/17/2005 : 11:42:42 AM
|
Hello Mike Buess, excuse me for disturbing you again,
1) is it possible to make several Custom Routine buttons ? I have made a Custom Routine button for one script; but what can I do for other scripts ? because I have several script window which I have to use more than once.
2) I think script window page length is limited, because I can't continue.
3) is it possible that a script submit an other script after its execution ?
I would like execute a script A which will submit a script B after its execution; the 2 script are located in the same directory.
Thank you very much. |
|
|
Topic |
|
|