From bug-octave-request at bevo dot che dot wisc dot edu Wed Oct 28 12:16:45 1998 Subject: Re: closeplot failing after popen or system(xv,0,async) From: "John W. Eaton" To: john Cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 28 Oct 1998 12:16:17 -0600 (CST) On 28-Oct-1998, john wrote: | > | I said: | > | | > | octave:1> sombrero(10) | > | octave:2> popen("sort", "w"); | > | octave:3> closeplot | > | | > | causes octave to wait, probably until the "sort" is terminated. | > | > To which JWE said: | > | > Please try the following patch. | > -- and the patch followed.... | | I have now tried the patch, and it works for me. | | What I was actually trying to achieve by the "closeplot" was to reset | gnuplot to some known state. Is this sufficient reason to create a | "greset" command that would send reset to gnuplot? Or is there already a | method to reset gnuplot? Octave 2.0.14 will have a `graw' function, so you can do the following: graw ("reset\n"); If you want to try it now, you can get the latest test release from the Octave ftp site. jwe