N
nkomli
I have a C++ program that outputs a txt file. I want to call gnuplot
from the program to graph the data but its not working..
Here is function call
system("wgnuplot.exe c:\\gnucommand.txt");
Here is the text for gnucommand which is in C:\ and the same folder as
wgnuplot.exe
set style data lines
set log y;
plot "res.dat" using 1:2 title 'X', "res.dat" using 1:3 title 'Y',
"res1.dat" using 1:2 title 'X1',"res1.dat" using 1:3 title 'Y1';
pause -1
it works fine with just wgnuplot.exe
from the program to graph the data but its not working..
Here is function call
system("wgnuplot.exe c:\\gnucommand.txt");
Here is the text for gnucommand which is in C:\ and the same folder as
wgnuplot.exe
set style data lines
set log y;
plot "res.dat" using 1:2 title 'X', "res.dat" using 1:3 title 'Y',
"res1.dat" using 1:2 title 'X1',"res1.dat" using 1:3 title 'Y1';
pause -1
it works fine with just wgnuplot.exe