#set terminal pngcairo font "Arial,30" size 3600,1300
set terminal qt font "Arial,30" size 3600,1300
set colors classic
#set output "fig2.png"

set key top inside right
set key box lw 3.0  font 'Arial,18'

set multiplot layout 3,3

set rmargin 0
set lmargin 0
set tmargin 0
set bmargin 0

set tics front
set yrange [-1.2:1.2]
set xrange[636:656]
set ytics  0.5 offset 0.00, 0.00
set mytics 2
set ytics nomirror
set xtics 10 offset 0.0,0.0
set mxtics 5
set ticscale 0.75,0.50
set format y "%2.1f"
set format x ""
set border lt -1 lw 2.5

unset xlabel; set format x ""
unset key

a=0.04
b=4
c=10

#=======================================
set size   0.10 , 0.277
set origin 0.055 , 0.674

set label 1 left at graph 0.72,0.85 "xx" font 'Arial,48'
unset label 2

plot "data/case1/tot_abc_1_1" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_1_1" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.055 , 0.397

 

set ylabel 'XAS intensity (arb. units)'  offset 0.0,0.0 font 'Arial,38'

set label 1 left at graph 0.72,0.85 "yx" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case1/tot_abc_2_1" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_2_1" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

unset ylabel

#=======================================
set size   0.10 , 0.277
set origin 0.055 , 0.12

 
set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zx" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case1/tot_abc_3_1" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_3_1" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle
set format x ""

#=======================================

set format y ""

#=======================================
set size   0.10 , 0.277
set origin 0.155 , 0.674

 

set label 1 left at graph 0.72,0.85 "xy" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case1/tot_abc_1_2" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_1_2" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.155 , 0.397

 

set label 1 left at graph 0.72,0.85 "yy" font 'Arial,48'
unset label 2

plot "data/case1/tot_abc_2_2" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_2_2" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.155 , 0.12

 

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zy" font 'Arial,48' front
unset label 2

set xlabel 'Energy (eV)'  offset 0,0.4 font 'Arial,38'

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case1/tot_abc_3_2" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_3_2" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

unset xlabel; set format x ""

#=======================================
unset ylabel; set format y ""
set size   0.10 , 0.277
set origin 0.255 , 0.674

 

set label 1 left at graph 0.72,0.85 "xz" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case1/tot_abc_1_3" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_1_3" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.255 , 0.397

 

set label 1 left at graph 0.72,0.85 "yz" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case1/tot_abc_2_3" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_2_3" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.255 , 0.12

 

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zz" font 'Arial,48'
unset label 2

plot "data/case1/tot_abc_3_3" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_3_3" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle
set format x ""
#=======================================
#=======================================
#=======================================
set size   0.10 , 0.277
set origin 0.36 , 0.674

set label 1 left at graph 0.72,0.85 "xx" font 'Arial,48'
unset label 2

plot "data/case2/tot_abc_1_1" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_1_1" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.36 , 0.397

set label 1 left at graph 0.72,0.85 "yx" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x4" font 'Arial,32'

plot "data/case2/tot_abc_2_1" u ($1+642.76):($2*a*b) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_2_1" u ($1+642.76):($3*a*b) w l lt 1 lw 3.5 lc 3 notitle

unset ylabel

#=======================================
set size   0.10 , 0.277
set origin 0.36 , 0.12

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zx" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x4" font 'Arial,32'

plot "data/case2/tot_abc_3_1" u ($1+642.76):($2*a*b) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_3_1" u ($1+642.76):($3*a*b) w l lt 1 lw 3.5 lc 3 notitle
set format x ""

#=======================================

set format y ""

#=======================================
set size   0.10 , 0.277
set origin 0.46 , 0.674

set label 1 left at graph 0.72,0.85 "xy" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x4" font 'Arial,32'

plot "data/case2/tot_abc_1_2" u ($1+642.76):($2*a*b) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_1_2" u ($1+642.76):($3*a*b) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.46 , 0.397

 

set label 1 left at graph 0.72,0.85 "yy" font 'Arial,48'
unset label 2

plot "data/case1/tot_abc_2_2" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case1/tot_abc_2_2" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.46 , 0.12

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zy" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x4" font 'Arial,32'

set xlabel 'Energy (eV)'  offset 0,0.4 font 'Arial,38'

plot "data/case2/tot_abc_3_2" u ($1+642.76):($2*a*b) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_3_2" u ($1+642.76):($3*a*b) w l lt 1 lw 3.5 lc 3 notitle

unset xlabel; set format x ""

#=======================================
unset ylabel; set format y ""
set size   0.10 , 0.277
set origin 0.56 , 0.674

set label 1 left at graph 0.72,0.85 "xz" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x4" font 'Arial,32'

plot "data/case2/tot_abc_1_3" u ($1+642.76):($2*a*b) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_1_3" u ($1+642.76):($3*a*b) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.56 , 0.397

set label 1 left at graph 0.72,0.85 "yz" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x4" font 'Arial,32'

plot "data/case2/tot_abc_2_3" u ($1+642.76):($2*a*b) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_2_3" u ($1+642.76):($3*a*b) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.56 , 0.12

 

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zz" font 'Arial,48'
unset label 2

plot "data/case2/tot_abc_3_3" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case2/tot_abc_3_3" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle
set format x ""
#=======================================
#=======================================
#=======================================
set size   0.10 , 0.277
set origin 0.665 , 0.674

set label 1 left at graph 0.72,0.85 "xx" font 'Arial,48'
unset label 2
plot "data/case3/tot_abc_1_1" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_1_1" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.665 , 0.397

 

set label 1 left at graph 0.72,0.85 "yx" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case3/tot_abc_2_1" u ($1+642.76):($2*a*c) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_2_1" u ($1+642.76):($3*a*c) w l lt 1 lw 3.5 lc 3 notitle

unset ylabel

#=======================================
set size   0.10 , 0.277
set origin 0.665 , 0.12

 

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zx" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x10" font 'Arial,32'

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case3/tot_abc_3_1" u ($1+642.76):($2*a*c) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_3_1" u ($1+642.76):($3*a*c) w l lt 1 lw 3.5 lc 3 notitle
set format x ""
#=======================================

set format y ""

#=======================================
set size   0.10 , 0.277
set origin 0.765 , 0.674

 

set label 1 left at graph 0.72,0.85 "xy" font 'Arial,48' front
unset label 2

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case3/tot_abc_1_2" u ($1+642.76):($2*a*c) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_1_2" u ($1+642.76):($3*a*c) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.765 , 0.397

 

set label 1 left at graph 0.72,0.85 "yy" font 'Arial,48'
unset label 2

plot "data/case3/tot_abc_2_2" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_2_2" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.765 , 0.12

 
set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zy" font 'Arial,48' front
set label 2 left   at graph 0.78,0.20 "x10" font 'Arial,32'

set xlabel 'Energy (eV)'  offset 0,0.4 font 'Arial,38'

plot "data/case3/tot_abc_3_2" u ($1+642.76):($2*a*c) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_3_2" u ($1+642.76):($3*a*c) w l lt 1 lw 3.5 lc 3 notitle

unset xlabel; set format x ""

#=======================================
unset ylabel; set format y ""
set size   0.10 , 0.277
set origin 0.865 , 0.674

 

set label 1 left at graph 0.72,0.85 "xz" font 'Arial,48'
set label 2 left   at graph 0.78,0.20 "x10" font 'Arial,32'

plot "data/screen.dat" u ($1+642.76):($2) w filledc above y=-20 lc rgb "gray" notitle,\
     "data/case3/tot_abc_1_3" u ($1+642.76):($2*a*c) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_1_3" u ($1+642.76):($3*a*c) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.865 , 0.397

 

set label 1 left at graph 0.72,0.85 "yz" font 'Arial,48' front


plot "data/case3/tot_abc_2_3" u ($1+642.76):($2*a*c) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_2_3" u ($1+642.76):($3*a*c) w l lt 1 lw 3.5 lc 3 notitle

#=======================================
set size   0.10 , 0.277
set origin 0.865 , 0.12

 

set format x "%2.0f"

set label 1 left at graph 0.72,0.85 "zz" font 'Arial,48'
unset label 2

plot "data/case3/tot_abc_3_3" u ($1+642.76):($2*a) w l lt 1 lw 3.5 lc 1 notitle,\
     "data/case3/tot_abc_3_3" u ($1+642.76):($3*a) w l lt 1 lw 3.5 lc 3 notitle
set format x ""
#=======================================


unset multiplot
#--------------------------------------









