Skipping empty files in Gnuplot
I am using gnuplot 4.6 . Also, I know that a similar question was asked more than a year ago here . The answer to that requires to write a small bash script. I want to know if it is possible to achieve this from within gnuplot script, especially when gnuplot-4.6 has so many cool features added. I am trying to achieve something like this : set xrange[xL:xU] set yrange[yL:yU] plot "file1.dat" using 1:2 w l lt 1 lw 1 lc 3,\ "file2.dat" using 1:2 w l lt 1 lw 1 lc 3 I am repeating the above process in a loop and the xrange & yrange parameters are being updated in each iteration. Also, I am saving