[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Blocking I/O to gnuplot pipe
From: |
Andy Adler |
Subject: |
Re: Blocking I/O to gnuplot pipe |
Date: |
Fri, 14 Feb 2003 16:24:22 -0500 (EST) |
On Fri, 14 Feb 2003, David Bateman wrote:
> First the brief description: Is it possible to performing blocking I/O
> to the gnuplot command pipe?
>
...
> subplot(2,1,1)
> gplot 'tmpfile'
> subplot(2,1,2)
> gplot 'tmpfile' using 1:3
>
> then octave passes these commands into the gnuplot pipe, before gnuplot has
> finished with the first plot. My call to "unlink(tmpfile)" then deletes the
> file and the second plot doesn't appear.
One idea is to use 'mark_for_deletion(tmpfile)' from octave-forge.
This will set tmpfile to be deleted when octave exits
or next calls purge_tmp_files.
Andy
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------