Gnuplot complain with ')' expected when array is not defined at specific line
"Guy Bonneau" <[email protected]> Wed, 06 Mar 2024 09:12:37 -0500
| Newsgroups | gmane.comp.graphics.gnuplot.bugs |
|---|---|
| Message-ID | <[email protected]> |
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? _______________________________________________ gnuplot-bugs mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs