I am having series of files (in same directory) with simple 2 column data, all named file-%d where %d is current date (so file-20200721, file-20200720 etc) and I would like to plot all of them via one script and get png outputs with same names as input files (file-20200721.png).
So far I have been trying this:
set term pngcairo enhanced size 1024, 768
set xdata time
set timefmt "%H:%M:%S"
set xrange ["00:00:00":"23:59:59"]
set format x "%H:%M:%S"
set grid
do for [i=20200101:21000101] {
fname_in = sprintf("file-%d.log",i)
fname_out = sprintf("file-%d.png",i)
set output fname_out
splot fname_in u 1:2
}
set output
but it doesn't set correct output at all (only one output, not correct file name and not real png).
Any help is welcome.