|
From: Teodoro S. <te...@ii...> - 2004-12-21 20:08:07
|
Hi!
This is how I'm supposed to work with pgnuplot.exe:
FILE * plot_pipe =3D _popen("pgnuplot.exe", "w");
fprintf(plot_pipe, "plot x\n");
But when I do this nothing happens...
I did this in desperation:
FILE * plot_pipe =3D _popen("pgnuplot.exe", "w");
for (k=3D0; k<10000; k++)
fprintf(plot_pipe, "plot x\n");
And it worked!! But it sends "plot x" hundreds of times...
Then if i write another fprintf out of the "for" sentence, it is not =
piped to gnuplot.
I'm totally lost. How can I work with pgnuplot.exe in a "clean" way?? |