B
Bernhard Hidding
Hello,
my c++ programm produces a variable number of ASCII files with variable file
names. These are to be plotted in with gnuplot. I use
system("gnuplot -persist my_gnuplot_script.gpl");
to open gnuplot, and "my_gnuplot_script.gpl" contains a list of files to be
plotted (e.g. plot "array13.dat", "array87.dat",...). However, each time the
program runs, different files are to be plotted, so I have to change the
file names in my gnuplot script manually each time. How can I hand over some
parameters to gnuplot? Or would it be the easiest way to modify my .gpl
script by my c++ program? If so, how do I do that?
Thanks in advance,
Bernhard Hidding
my c++ programm produces a variable number of ASCII files with variable file
names. These are to be plotted in with gnuplot. I use
system("gnuplot -persist my_gnuplot_script.gpl");
to open gnuplot, and "my_gnuplot_script.gpl" contains a list of files to be
plotted (e.g. plot "array13.dat", "array87.dat",...). However, each time the
program runs, different files are to be plotted, so I have to change the
file names in my gnuplot script manually each time. How can I hand over some
parameters to gnuplot? Or would it be the easiest way to modify my .gpl
script by my c++ program? If so, how do I do that?
Thanks in advance,
Bernhard Hidding