gnuplot <<EOF
set xrange [0:53]
set yrange [0:0.40]
set title "Algorithm Loss Percentages" font "Times-Roman,16"
set terminal postscript eps
set output "AlgorithmLossValues.eps
set key top left
set style line 1 lt 1 lw 3 lc 1
set tics out
set mytics 5
set size 0.7, 0.7
set pointsize 2
plot "AlgorithmPercentLoss.dat" using 1:2 title "% Loss" with lines linestyle 1
EOF
epstopdf AlgorithmLossValues.eps

#--------------------------------------------------------------------------------

gnuplot <<EOF
set xrange [0:19]
set yrange [0.00:0.40]
set tics out
set mytics 2
set xtics ("albrecht" 1, "sdr" 2, "cocomo81o" 3, "nasa93center1" 4, "kemerer" 5, "telecom1" 6, "miyazaki94" 7, \
		"nasa93center2" 8, "desharnaisL3" 9, "cocomo81s" 10, "cocomo81e" 11, "nasa93center5" 12, \
		"cocomo81" 13, "desharnaisL2" 14, "desharnaisL1" 15,"finnish" 16, "desharnais" 17, "maxwell" 18, \
		"china" 19) rotate by 315

set title "Data Set Loss Percentages" font "Times-Roman,16"
set terminal postscript eps
set output "DataSetLossValues.eps
set key top left
set style line 1 lt 1 lw 3 lc 1
set size 0.7, 0.7
set pointsize 0.05
plot "DataSetPercentLoss.dat" using 1:2 title "% Loss" with lines linestyle 1
EOF
epstopdf DataSetLossValues.eps

#--------------------------------------------------------------------------------

gnuplot <<EOF
set noztics
unset colorbox

set xrange [0:20]
set yrange [-3:70]

set terminal png transparent nocrop enhanced 8
set output 'AllLossPercentages.png'
set view map
set tics out;
set ytics ("52" 53, "44" 45,"28" 29,"10" 11)
#Who hates formatting? I hate formatting!
set xtics ("      albrecht" 1, "sdr" 2, "      cocomo81o" 3, "         nasa93center1" 4, "     kemerer" 5, \
		"     telecom1" 6, "           miyazaki94" 7, "            nasa93center2" 8, "            desharnaisL3" 9,\
		"      cocomo81s" 10, "       cocomo81e" 11, "             nasa93center5" 12, "       cocomo81" 13, \
		"            desharnaisL2" 14, "             desharnaisL1" 15,"     finnish" 16, "         desharnais" 17, "     maxwell" 18, \
		"china" 19) rotate by 270
set size 0.7, 1.4
set key 19, 69

set grid


splot 'AllLossesKey.dat' using (19) :1: 2 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (1) :1: 2 title "< 12.5% Loss:" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (2) :1: 3 title "< 25% Loss:" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (3) :1: 4 title "< 50% Loss:"with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (4) :1: 5 title "=> 50% Loss:"with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (5) :1: 6 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (6) :1: 7 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (7) :1: 8 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (8) :1: 9 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (9) :1:10 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (10):1:11 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (11):1:12 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (12):1:13 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (13):1:14 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (14):1:15 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (15):1:16 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (16):1:17 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (17):1:18 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (18):1:19 title "" with points pt 5 ps 2 lt palette,\
      'AllLosses.dat' using (19):1:20 title "" with points pt 5 ps 2 lt palette

EOF


