As an alternative to Jonathan's answer, I would go with
FILES = system("ls -1 *.dat") plot for [data in FILES] data u 1:2 wp pt 1 lt rgb 'black' notitle
or
plot '<(cat *.dat)' u 3:2 title 'your data'
The first option gives you more flexibility if you want to mark each curve. For example, if you have several files with the names data_1.dat , data_2.dat , etc., Which will be marked as 1 , 2 , etc., Then:
FILES = system("ls -1 data_*.dat") LABEL = system("ls -1 data_*.dat | sed -e 's/data_//' -e 's/.dat//'") plot for [i=1:words(FILES)] word(FILES,i) u 3:2 title word(LABEL,i) noenhanced
vagoberto Aug 14 '15 at 16:07 2015-08-14 16:07
source share