set terminal postscript enhanced 18
set bmargin 3
set lmargin 3
set rmargin 3
set tmargin 3
set size ratio 0.866
set yrange [0:0.866]
set xrange [0:1]
set noborder
set noxtics
set noytics
set label 'Y' at 0, -0.03 center
set label 'Z' at 1, -0.03 center
set label 'X' at 0.5, 0.886 center
set output 'Ternary-GNUPlot.eps'

set style line 1 lt 1 lw 3 pt -1 ps 1
set style line 2 lt 5 lw 1 pt -1 ps 1

# x
set arrow 1 from 0,0 to 1, 0.0 nohead linestyle 1
set arrow 2 from 0.1,0 to 0.55, 0.779 nohead linestyle 2
set arrow 3 from 0.2,0 to 0.60, 0.693 nohead linestyle 2
set arrow 4 from 0.3,0 to 0.65, 0.606 nohead linestyle 2
set arrow 5 from 0.4,0 to 0.70, 0.520 nohead linestyle 2
set arrow 6 from 0.5,0 to 0.75, 0.433 nohead linestyle 2
set arrow 7 from 0.6,0 to 0.80, 0.346 nohead linestyle 2
set arrow 8 from 0.7,0 to 0.85, 0.260 nohead linestyle 2
set arrow 9 from 0.8,0 to 0.90, 0.173 nohead linestyle 2
set arrow 10 from 0.9,0 to 0.95, 0.0866 nohead linestyle 2

# z
set arrow 11 from 1, 0 to 0.50, 0.866 nohead linestyle 1
set arrow 12 from 0.95, 0.0866 to 0.05, 0.0866 nohead linestyle 2
set arrow 13 from 0.90, 0.173 to 0.10, 0.173 nohead linestyle 2
set arrow 14 from 0.85, 0.260 to 0.15, 0.260 nohead linestyle 2
set arrow 15 from 0.80, 0.346 to 0.20, 0.346 nohead linestyle 2
set arrow 16 from 0.75, 0.433 to 0.25, 0.433 nohead linestyle 2
set arrow 17 from 0.70, 0.520 to 0.30, 0.520 nohead linestyle 2
set arrow 18 from 0.65, 0.606 to 0.35, 0.606 nohead linestyle 2
set arrow 19 from 0.60, 0.693 to 0.40, 0.693 nohead linestyle 2
set arrow 20 from 0.55, 0.779 to 0.45, 0.779 nohead linestyle 2

# y
set arrow 21 from 0.50, 0.866 to 0,0 nohead linestyle 1
set arrow 22 from 0.05, 0.0866 to 0.1,0 nohead linestyle 2
set arrow 23 from 0.10, 0.173 to 0.2,0 nohead linestyle 2
set arrow 24 from 0.15, 0.260 to 0.3,0 nohead linestyle 2
set arrow 25 from 0.20, 0.346 to 0.4,0 nohead linestyle 2
set arrow 26 from 0.25, 0.433 to 0.5,0 nohead linestyle 2
set arrow 27 from 0.30, 0.520 to 0.6,0 nohead linestyle 2
set arrow 28 from 0.35, 0.606 to 0.7,0 nohead linestyle 2
set arrow 29 from 0.40, 0.693 to 0.8,0 nohead linestyle 2
set arrow 30 from 0.45, 0.779 to 0.9,0 nohead linestyle 2

plot "<awk '{print ($1+2*$3)/(2*($1+$2+$3)), sqrt(3)*$1/(2*($1+$2+$3))}' data.dat" t 'data' w p pt 7

