nasadata() { cat<<NasaEnd | sort -n 
0	17.79
95.51	83.05
-161.36	7.66 
31.03	71.43 
60.95	72.83 
77.22	14.76 
48.66	47.63 
26.65	42.42
NasaEnd
}

desharnaisdata() { cat<<DeshEnd | sort -n
23.12	84.57 
23.12	84.57 
35.89	-45.13 
-10.54	-206.12
0	59.84 
-14.72	-93.27
DeshEnd
}

isbsgdata() { cat<<ISBSGEnd | sort -n
69.29	100
42.3	88.04
ISBSGEnd
}

maxwelldata() { cat<<MaxEnd | sort -n
44.17	76.26
MaxEnd
}

nasadata > /tmp/$$-nasa.tmp
desharnaisdata > /tmp/$$-desh.tmp
isbsgdata > /tmp/$$-isbsg.tmp
maxwelldata > /tmp/$$-max.tmp


gnuplot <<EOF
	set yrange [-250:125]
	set xrange [-200:250]
	set ytics (-200,-100,0,100)
	set xtics (-1000,-600,-200,0,200)
	set label "29, 54" at -130,90
	set arrow 3 from -50,90 to 29,54
	set arrow 1 from -200,54 to 250,54 nohead ls 2
	set arrow 2 from 29,-250 to 29,125 nohead ls 2
	set arrow 4 from -200,0 to 250,0 nohead ls 0
	set arrow 5 from 0,125 to 0,-250 nohead ls 0
	set size 0.5,0.5
	set terminal postscript eps "Helvetica" 15
	set output "reduce.eps
	set xlabel "% median improvement
	set ylabel "% spread improvement
	set key inside right bottom
plot	"/tmp/$$-nasa.tmp" title "nasa" with points 4,\
	"/tmp/$$-desh.tmp" title "desh" with points 3,\
	"/tmp/$$-isbsg.tmp" title "isbsg" with points 2,\
	"/tmp/$$-max.tmp" title "maxwell" with points 1
EOF
epstopdf reduce.eps
