Menu

#1871 several iterations in one plot result in sometimes missing/overwritten plots

None
closed-fixed
nobody
None
2016-10-26
2016-10-26
No

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.

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2016-10-26

    Ticket moved from /p/gnuplot/patches/740/

    Can't be converted:

    • _milestone: Version 5
    • _priority: 5
     
  • Ethan Merritt

    Ethan Merritt - 2016-10-26

    Applied to 5.0 and 5.1

    I suspect we no longer need to track highest_iteration at all.

     
  • Ethan Merritt

    Ethan Merritt - 2016-10-26
    • status: open --> pending-fixed
    • Group: Version 5 -->
    • Priority: 5 -->
     
  • Ethan Merritt

    Ethan Merritt - 2017-03-17
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Auth0 Logo