#!/usr/local/bin/gnuplot -persist
set terminal postscript portrait enhanced color dashed lw 1.5 font 'Arial-Bold, 20'  
set output "Figure_2_7.ps"
set size 2,2
set origin 0,0
set key autotitle columnhead font 'Arial-Bold,20' out horiz top 

set multiplot layout 2,2
set label 1 '(a)' at screen 0.85,1.25 font 'Arial-Bold 20'
set label 2 '(b)' at screen 1.75,1.25 font 'Arial-Bold 20'


set key autotitle columnhead font 'Arial-Bold, 20' out horiz top  
set xrange [ -0.5 : 5.5 ]
set size ratio 1.25
set tics font 'Arial-Bold, 20' 
set xtics rotate by 45 right
set border lw 1.5
unset key
set logscale y 10
set grid
set grid lc rgb '#D3D3D3'  lw 0.5
unset key
unset title 
set size 0.9,2
set origin 0,0.0

set yrange [ 0.01 : 10 ]
set ylabel 'P^{/Symbol D}_{A-->B}(GPa)' font 'Arial-Bold, 20' offset +1.5
set ylabel 'P^{H}_{A-->B}(GPa)' font 'Arial-Bold, 20' offset +1.5
plot "Figure_2_7_1.txt"  using ($2):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 2 pt 1, "" using ($3):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 3 pt 2, "" using ($4):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 4 pt 3, "" using ($5):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 5 pt 4, "" using ($6):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 7 pt 6, "" using 0:7:11:xticlabels(1) with yerrorbars  lw 2.5 ps 2.5 dt 1 pt 5, "" using ($8):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 1 pt 7, "" using ($9):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 1 pt 8, "" using ($10):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 9, "" using ($12):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 10, "" using ($13):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 11, "" using ($14):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 12

set size 0.9,2
set origin 0.9,0
set yrange [ 0.01 : 10 ]
plot "Figure_2_7_2.txt"  using ($2):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 2 pt 1, "" using ($3):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 3 pt 2, "" using ($4):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 4 pt 3, "" using ($5):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 5 pt 4, "" using ($6):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 7 pt 6, "" using 0:7:11:xticlabels(1) with yerrorbars  lw 2.5 ps 2.5 dt 1 pt 5, "" using ($8):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 1 pt 7, "" using ($9):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 1 pt 8, "" using ($10):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 9, "" using ($12):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 10, "" using ($13):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 11, "" using ($14):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 12



unset logscale 
set size 2,0.5
set origin 0.51,0.19
set key outside horizontal 
set border 0 
unset title
unset tics
unset xlabel
unset ylabel
set yrange [0:0.001]
set xrange [0:0.001]
plot "Figure_2_7_2.txt"  using ($2):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 2 pt 1, "" using ($3):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 3 pt 2, "" using ($4):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 4 pt 3, "" using ($5):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 5 pt 4, "" using ($6):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 7 pt 6, "" using 0:7:11:xticlabels(1) with yerrorbars  lw 2.5 ps 2.5 dt 1 pt 5, "" using ($8):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 1 pt 7, "" using ($9):xticlabels(1) with linespoints  lw 2 ps 1.5 dt 1 pt 8, "" using ($10):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 9, "" using ($12):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 10, "" using ($13):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 11, "" using ($14):xticlabels(1)  with linespoints  lw 2 ps 1.5 dt 1 pt 12


unset multiplot

