sort -n $1 > /tmp/$$
gnuplot <<EOF
	set terminal png
	set output "$5"
	set xlabel "$3"
	set ylabel "$4"
	plot "/tmp/$$" title "$2" with points
EOF