Teodoro Seoane wrote:
> This is how I'm supposed to work with pgnuplot.exe:
>
> FILE * plot_pipe = _popen("pgnuplot.exe", "w");
> fprintf(plot_pipe, "plot x\n");
>
> But when I do this nothing happens...
In that case, it appears your implementation is setting this pipe to
fully buffered mode, and you have to explicity flush the buffer for the
command to actually be sent. You do that by following the above
sequence by a
fflush(plot_pipe);
Do that after every group of commands, but in particular after every
'plot' or other command that you want executed immediately.
--
Hans-Bernhard Broeker (br...@ph...)
Even if all the snow were burnt, ashes would remain.
|