#!/bin/bash


cat >plots.gnu <<EOF

set datafile separator ","
set title "$1"
set ylabel "Track"
set xlabel "Time, seconds"
#set xrange [0:10]
#set yrange [0:40]
set size ratio 0.71
set terminal pdf size 26.7cm, 19cm
set output "plot.pdf"
#set terminal x11
#set terminal svg size 1000, 600 dynamic
#set output "plot.svg"
plot "3.asc" using 1 title "CPU" with points, "3.asc" using 2 title "Elapsed" with points
EOF

gnuplot plots.gnu

#rm -f [ls]k.dat
