Hi. I would like to create a script that creates a new journal with a variable amount of oneway graphs arranged in the way I want. I have tried multipe ways and cannot figure it out. Can someone help me? Thanks!
Trying to write something like this:
Hlist_MSG1 = "HList Box(( oneway_List[";
Hlist_MSG2 = "] << Report) << Clone Box, ( noz_stat[";
Hlist_MSG3 = "] <<Report)[";
Hlist_MSG4 = "] << Clone Box)";
nw = New Window(name, <<Journal,
vlb = V List Box(
for(i=1, i<=n_Copies, i++,
evallist({Hlist_MSG1,
i;
Hlist_MSG2;
i;
Hlist_MSG3;
1;
Hlist_MSG4;
if(i<n_Copies,", ", " ")}));
));
Or like this:
HLIST_MSG_LST[i] = "HList Box(( oneway_List[" || char(i) || "] << Report) << Clone Box, ( noz_stat[" || char(i) || "] <<Report)[1] << Clone Box)");
subs_list = {};
for(i=1, i<=n_Copies, i++, subs_list [i] = "num("||char(i)||")");
num_list = {};
for(i=1, i<=n_Copies, i++, num_list [i] = i);
nw = New Window(name, <<Journal,
vlb = V List Box(
for(i=1, i<=n_Copies, i++,
eval(parse(substitute(HLIST_MSG_LST[i],subs_list[i],num_list[i])));
if(i<n_Copies,", ", " "));
));