With the latest development code (and Qt terminal) I find that zoom coordinates are retained across plot commands. Perhaps this is how it's always been, but I suspect users generally would feel that shouldn't happen.
To illustrate, try the following sequence:
gnuplot> set xrange [0:10]
gnuplot> plot sin(x)
[PERFORM A ZOOM WITH THE MOUSE]
gnuplot> set xrange [-100:100]
gnuplot> plot cos(x/5)
[NOW PRESS 'u' TO UNZOOM]
The result is
1) Upon the second plot, even though I specified a new xrange, gnuplot retains the zoom box coordinates for the prior plot.
2) Upon pressing 'u', the coordinates go back to the unzoomed coordinates of the first plot, i.e., [0:10]
This probably isn't a difficult change to make. I think the issue is more an agreement of what should happen in this scenario. I would think that upon the subsequent 'plot' command gnuplot terminals should erase all memory of the zoom and unzoom coordinates of the plot and place the terminal state into unzoomed.
Log in to post a comment.