I made a script as following to plot with GnuPlot.
#!/usr/bin/gnuplot
#file: myplot
set term svg;
set out 'figfile.svg';
plot './datafile.dat' with lp;
set term wxt 0;
set out;
So, I can create a figure file as
$./myplot
However, I have to edit the script to replace 'figfile.svg' and 'datafile.dat' manually. Can I modify this script and use the following format to create a figure file?
$./myplot datafile.dat figfile.svg
Thanks all.