From bug-octave-request at bevo dot che dot wisc dot edu Tue Nov 18 03:14:16 1997 Subject: figure() fails in multiplot mode From: "John W. Eaton" To: Kai Mueller Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 18 Nov 1997 03:14:30 -0600 On 13-Nov-1997, Kai Mueller wrote: | Problem: figure(n) fails if gnuplot is in multiplot mode. | ======== This happens when several diagrams are drawn in | one window. | | Solution: leave multiplot node before "set term x11 (n)". | ========= The new function "greset" is not necessary | but I would like to have it in octave. Instead of resetting all these things, I simply added a call to oneplot in the figure function. The problem with using an M-file to handle resetting the state of the external gnuplot process is that you can't be sure what the default values should be. I believe recent versions of gnuplot do have a reset function, so it would not be too hard to write a greset function that runs the gnuplot reset command. However, doing that doesn't seem quite right to me either, because the gnuplot reset command appears to set the values of the gnuplot variables to some internal defaults, ignoring any personal defaults that might be set in a ~/.gnuplot file. (Besides that, the reset command seems to make my copy of gnuplot (3.6b319) crash...) jwe