set terminal pdf color enhanced size 6.0in,3.0in font "Times,17" #set terminal postscript portrait enhanced size 7.5, 10. color solid 9.5; #set terminal wxt size 950,1250 INDIR="detail-plots/" OUTDIR=INDIR FILEPAT='*.dat' FILES = system(sprintf('ls %s%s',INDIR,FILEPAT)) set macros set output OUTDIR."out.pdf" #set pointsize 2.0 set grid set key bottom right set logscale x 2 set logscale y set yrange [1:20]; set xlabel "List length (item count)" offset 2,0 set ylabel "Operation duration (ns)" set linetype 3 dashtype 2 set linetype 4 dashtype 2 myInput(s) = sprintf('%s%s',DIR,s) do for [FILE in FILES] { set title FILE # plot FILE \ # i 0 using 1:2:3 title columnheader(1) with yerrorbars lt rgb "blue" pt 2 ps 1 lw 1, \ # '' i 1 using 1:2:3 title columnheader(1) with yerrorbars lt rgb "red" pt 3 ps 1 lw 1, \ # '' i 2 using 1:2:3 title columnheader(1) with yerrorbars lt rgb "green" pt 6 ps 1 lw 1, \ # '' i 3 using 1:2:3 title columnheader(1) with yerrorbars lt rgb "black" pt 8 ps 1 lw 1, \ # '' i 4 using 1:2:3 title columnheader(1) with yerrorbars lt rgb "brown" pt 10 ps 1 lw 1 # plot FILE \ # i 0 using 1:2 title columnheader(1) with points lt rgb "blue" pt 1 ps 1 lw 1, \ # '' i 1 using 1:2 title columnheader(1) with points lt rgb "purple" pt 1 ps 1 lw 1, \ # '' i 2 using 1:2 title columnheader(1) with points lt rgb "magenta" pt 1 ps 1 lw 1 plot FILE \ i 0 using 1:2 title columnheader(1) with points lt rgb "blue" pt 1 ps 1 lw 1, \ '' i 7 using 1:2 title columnheader(1) with points lt rgb "purple" pt 1 ps 1 lw 1, \ '' i 8 using 1:2 title columnheader(1) with points lt rgb "magenta" pt 1 ps 1 lw 1, \ '' i 9 using 1:2 title columnheader(1) with points lt rgb "brown" pt 1 ps 1 lw 1 # '' i 1 using 1:2 title columnheader(1) with points lt rgb "red" pt 1 ps 1 lw 1, \ # '' i 2 using 1:2 title columnheader(1) with points lt rgb "green" pt 1 ps 1 lw 1, \ # '' i 3 using 1:2 title columnheader(1) with points lt rgb "black" pt 1 ps 1 lw 1, \ # '' i 4 using 1:2 title columnheader(1) with points lt rgb "orange" pt 1 ps 1 lw 1, \ # '' i 5 using 1:2 title columnheader(1) with points lt rgb "cyan" pt 1 ps 1 lw 1, \ # '' i 6 using 1:2 title columnheader(1) with points lt rgb "gray" pt 1 ps 1 lw 1, \ }