From: Guy B. <guy...@vi...> - 2024-03-06 14:25:36
|
If I use this script Gnuplot complains with error : ')' expected ### strange behaviour with setting arrays and using stats reset session $Data <<EOD 1 10 2 20 3 30 4 40 EOD stats $Data u (c=$0+1) nooutput # get the number of rows into c array M[c] array M_x_N[c] stats $Data u (M[int($0+1)] = $1) name "M" nooutput stats $Data u (M_x_N[int($0+1)] = $2) name "M_x_N" nooutput ### end of script However, if you change the sequence to the following, it will work. array M[c] stats $Data u (M[int($0+1)] = $1) name "M" nooutput array M_x_N[c] stats $Data u (M_x_N[int($0+1)] = $2) name "M_x_N" nooutput Is this a bug? |