when using the "for" loop in a "plot" command several times, e.g.
plot for [i=1:3] x-i, for [j=1:2] x-j-5
the last "for" loop sets the internal variable "highest_iteration"
in "plot2d.c" which results in missing plots when the preceding
loops have more iterations.
example (the second plot shows the error):
reset
set xrange [-10:10]
set yrange [-10:10]
plot for [i=1:3] x-i title "i=".i, for [j=1:3] x-j-5 title "j=".j
pause -1
plot for [i=1:3] x-i title "i=".i, for [j=1:2] x-j-5 title "j=".j
adding two lines to "plot2d.c" repairs this.
patch is attached.
Ticket moved from /p/gnuplot/patches/740/
Can't be converted:
Applied to 5.0 and 5.1
I suspect we no longer need to track highest_iteration at all.