|
From: Hans-Bernhard B. <br...@ph...> - 2006-01-02 11:06:20
|
On Sun, 1 Jan 2006, Mark Rashid wrote: > plot to the screen. If I background gnuplot, then it appears that gnuplot > is invoked correctly and the piped commands are being interpretted by > gnuplot, but no plot to the screen is produced until the calling program > exits, at which point the gnuplot plot just flashes on the screen. I suspect that's owed to the way you did the piping. The usually recommended way is to go not through system(), but rather the system call pipe() or at least the popen() function of the system C library. I have not the slightest idea how one would do that from a Fortran program, though. > What I want is for the plot to display, and then when another command is > sent down the pipe, the new plot displays, just as in an interactive > gnuplot session. Once you have a pipe, not a FIFO, this can be achieved by flush()ing it at the relevant points. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |