Hi, This works in C:
Open the pipe to gnuplot:
fp = popen("gnuplot","w");
Send whatever commands you want:
fprintf(fp,"set data style lines\n");
Flush the pipe:
fflush(fp);
Close the pipe:
fclose(fp);
Hope this helps,
Gavin.
how do I pass a comment e.g. plot sin(x) to gnuplot from visual c++?
I have tried to use fprintf but it doesn't work?
Any idea anyone?
Thanks in advance!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|