ncalls() { cat<<EOF >/tmp/dat
62	3100	800
124	6200	1100
139	5800	1100
201	9900	1400
248	12400	1600
278	11600	1500
402	19800	2000
496	24800	2200
556	23200	2200
804	39600	2800
1112	46400	3000
1608	79200	4000
EOF
}
runtimes() { cat<<EOF > /tmp/dat
62	0.01	0.01
124	0.03	0.02
139	0.04	0.02
201	0.13	0.04
248	0.10	0.05
278	0.17	0.05
402	0.50	0.12
496	0.44	0.14
556	0.73	0.16
804	1.98	0.38
1112	2.97	0.52
1608	8.06	1.35
EOF
}

ncalls
gnuplot<<EOF
	set size 0.4,0.5
	set ylabel ""
	set title "model calls"
	set xlabel "model size"
	set ytics (0, "25,000" 25000, "50,000" 50000, "75,000" 75000, "100,000" 100000)
	set xtics (0 , 500 , 1000, 1500)
	set xrange [0:1700]
	set yrange [-10000:100000]
	set key top left
	set terminal postscript eps "Helvetica" 15
	set output "scaleupcalls.eps
	plot "/tmp/dat" using 1:2 title "KEYS" with linesp 0 1, "/tmp/dat" using 1:3 title "KEYS2" with linesp 1 2
EOF

epstopdf  scaleupcalls.eps

runtimes
gnuplot<<EOF
	set size 0.4,0.5
	set ylabel ""
	set title "runtimes (secs)"
	set xlabel "model size"
	set ytics (0, 2.5,5,7.5,10)
	set xtics (0 , 500 , 1000, 1500)
	set xrange [0:1700]
	set yrange [-0.9:10]
	set key top left
	set terminal postscript eps "Helvetica" 15
	set output "scaleupruntimes.eps
	plot "/tmp/dat" using 1:2 title "KEYS" with linesp 0 1, "/tmp/dat" using 1:3 title "KEYS2" with linesp 1 2
EOF

epstopdf  scaleupruntimes.eps

