143 lines
6.0 KiB
Gnuplot
143 lines
6.0 KiB
Gnuplot
#!/bin/gnuplot
|
|
|
|
#set terminal pngcairo size 600,600 enhanced font 'Verdana,10'
|
|
#set output 'plot_pes.png'
|
|
#set terminal postscript eps size 5.3,3.0 enhanced color \
|
|
|
|
set terminal postscript eps size 5.3,5.3 enhanced color \
|
|
font 'Helvetica,24' linewidth 2
|
|
set output 'plot_pes.eps'
|
|
set encoding iso_8859_1
|
|
|
|
###################################################################################
|
|
###################################################################################
|
|
# SYSTEM DEPENDENT PART:
|
|
|
|
set xrange[1.5:16.0]
|
|
xmin=1.5
|
|
xmax=16.0
|
|
|
|
# VIEW 1:
|
|
set yrange[-78.40:-77.7]
|
|
ymin=-78.40
|
|
ymax=-77.7
|
|
###################################################################################
|
|
###################################################################################
|
|
|
|
set format y "%.1f"
|
|
|
|
if (!exists("MP_LEFT")) MP_LEFT = 0.19
|
|
if (!exists("MP_RIGHT")) MP_RIGHT = 0.97
|
|
if (!exists("MP_BOTTOM")) MP_BOTTOM = 0.10
|
|
if (!exists("MP_TOP")) MP_TOP = 0.97
|
|
if (!exists("MP_xGAP")) MP_xGAP = 0.05
|
|
if (!exists("MP_yGAP")) MP_yGAP = 0.08
|
|
|
|
set multiplot layout 1,2 rowsfirst \
|
|
margins screen MP_LEFT, MP_RIGHT, MP_BOTTOM, MP_TOP spacing screen MP_xGAP, MP_yGAP
|
|
|
|
set style line 1 dt 1 lw 3 linecolor rgb "gray60"
|
|
set style line 2 dt 1 lw 3 linecolor rgb "black"
|
|
set style line 3 dt 1 lw 3 linecolor rgb "light-red"
|
|
set style line 4 dt 1 lw 3 linecolor rgb "sea-green"
|
|
set style line 5 dt 2 lw 3 linecolor rgb "sea-green"
|
|
set style line 6 dt 1 lw 3 linecolor rgb "orange"
|
|
set style line 7 dt 2 lw 3 linecolor rgb "orange"
|
|
set style line 8 dt 1 lw 3 linecolor rgb "medium-blue"
|
|
|
|
set xlabel "Distance (a_{0})"
|
|
set ylabel 'Energy (Hartree)'
|
|
|
|
# get the relation of x- and y-range
|
|
dx = xmax-xmin
|
|
dy = ymax-ymin
|
|
s1 = dx/dy
|
|
# get ratio of axes
|
|
#s2 = 3.0/5.3
|
|
s2 = 5.3/5.3*2
|
|
# helper function for getting the rotation angle of the labels in degree
|
|
deg(x) = x/pi*180.0
|
|
r(x) = deg(atan(s1*s2*x))
|
|
# function for fitting
|
|
f(x) = a*x+b
|
|
|
|
###################################################################################
|
|
###################################################################################
|
|
# SYSTEM DEPENDENT PART:
|
|
|
|
fit [3.0:3.6] [*:*] f(x) 'pes_rhf.dat' u 1:($2) via a,b
|
|
set label 1 'RHF' at 3.6,-77.75 rotate by r(a) center tc ls 1 #font 'Verdana,20'
|
|
fit [6.0:8.0] [*:*] f(x) 'pes_s0.dat' u 1:($2) via a,b
|
|
set label 31 'sCI0' at 7.0,-77.773 rotate by r(a) center tc ls 8 #font 'Verdana,20'
|
|
fit [6.0:8.0] [*:*] f(x) 'pes_s2.dat' u 1:($2) via a,b
|
|
set label 32 'sCI2' at 7.0,-77.807 rotate by r(a) center tc ls 8 #font 'Verdana,20'
|
|
fit [7.2:9.2] [*:*] f(x) 'pes_s4.dat' u 1:($2) via a,b
|
|
set label 33 'sCI4' at 8.2,-78.021 rotate by r(a) center tc ls 8 #font 'Verdana,20'
|
|
fit [9.5:11.5] [*:*] f(x) 'pes_CISD.dat' u 1:($2) via a,b
|
|
set label 2 'CISD' at 10.5,-77.805 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
fit [8.5:10.5] [*:*] f(x) 'pes_CISDT.dat' u 1:($2) via a,b
|
|
set label 3 'CISDT' at 9.5,-77.867 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
fit [8.0:10.0] [*:*] f(x) 'pes_CISDTQ.dat' u 1:($2) via a,b
|
|
set label 4 'CISDTQ' at 9.0,-78.052 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
fit [13.0:15.0] [*:*] f(x) 'pes_CIo1.dat' u 1:($2) via a,b
|
|
set label 11 'hCI1' at 14.0,-77.734 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
fit [13.0:15.0] [*:*] f(x) 'pes_CIo2.dat' u 1:($2) via a,b
|
|
set label 12 'hCI2' at 14.0,-77.901 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
fit [13.0:15.0] [*:*] f(x) 'pes_CIo3.dat' u 1:($2) via a,b
|
|
set label 13 'hCI3' at 14.0,-77.995 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
fit [13.0:15.0] [*:*] f(x) 'pes_CIo4.dat' u 1:($2) via a,b
|
|
set label 14 'hCI4' at 14.0,-78.053 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
fit [13.0:15.0] [*:*] f(x) 'pes_fci.dat' u 1:($2) via a,b
|
|
set label 20 'FCI' at 14.0,-78.091 rotate by r(a) center tc ls 2 #font 'Verdana,20'
|
|
|
|
plot 'pes_rhf.dat' w l ls 1 notitle, \
|
|
'pes_CISD.dat' w l ls 3 notitle, \
|
|
'pes_CISDT.dat' w l ls 3 notitle, \
|
|
'pes_CISDTQ.dat' w l ls 3 notitle, \
|
|
'pes_s0.dat' w l ls 8 notitle, \
|
|
'pes_s2.dat' w l ls 8 notitle, \
|
|
'pes_s4.dat' w l ls 8 notitle, \
|
|
'pes_CIo1.dat' w l ls 4 notitle, \
|
|
'pes_CIo1.5.dat' w l ls 5 notitle, \
|
|
'pes_CIo2.dat' w l ls 4 notitle, \
|
|
'pes_CIo2.5.dat' w l ls 5 notitle, \
|
|
'pes_CIo3.dat' w l ls 4 notitle, \
|
|
'pes_CIo3.5.dat' w l ls 5 notitle, \
|
|
'pes_CIo4.dat' w l ls 4 notitle, \
|
|
'pes_fci.dat' w l ls 2 notitle
|
|
|
|
unset label
|
|
unset ylabel
|
|
set format y ""
|
|
|
|
a=0; b=0
|
|
|
|
fit [3.0:3.6] [*:*] f(x) 'pes_rhf.dat' u 1:($2) via a,b
|
|
set label 1 'RHF' at 3.6,-77.75 rotate by r(a) center tc ls 1 #font 'Verdana,20'
|
|
fit [8.0:10.0] [*:*] f(x) 'pes_ooCIs0.dat' u 1:($2) via a,b
|
|
set label 31 'oo-sCI0' at 9.5,-77.902 rotate by r(a) center tc ls 8 #font 'Verdana,20'
|
|
fit [8.0:10.0] [*:*] f(x) 'pes_ooCIS.dat' u 1:($2) via a,b
|
|
set label 10 'oo-CIS' at 9.5,-77.765 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
fit [8.0:10.0] [*:*] f(x) 'pes_ooCISD.dat' u 1:($2) via a,b
|
|
set label 2 'oo-CISD' at 9.5,-77.979 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
fit [13.0:14.0] [*:*] f(x) 'pes_ooCIo1.dat' u 1:($2) via a,b
|
|
set label 11 'oo-hCI1' at 13.0,-77.797 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
fit [13.0:14.0] [*:*] f(x) 'pes_ooCIo2.dat' u 1:($2) via a,b
|
|
set label 12 'oo-hCI2' at 13.0,-78.025 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
fit [13.0:15.0] [*:*] f(x) 'pes_fci.dat' u 1:($2) via a,b
|
|
set label 20 'FCI' at 14.0,-78.091 rotate by r(a) center tc ls 2 #font 'Verdana,20'
|
|
|
|
plot 'pes_rhf.dat' w l ls 1 notitle, \
|
|
'pes_ooCIo1.dat' w l ls 4 notitle, \
|
|
'pes_ooCIo1.5.dat' w l ls 5 notitle, \
|
|
'pes_ooCIo2.dat' w l ls 4 notitle, \
|
|
'pes_ooCIS.dat' w l ls 3 notitle, \
|
|
'pes_ooCISD.dat' w l ls 3 notitle, \
|
|
'pes_ooCISDT.dat' w l ls 3 notitle, \
|
|
'pes_ooCIs0.dat' w l ls 8 notitle, \
|
|
'pes_fci.dat' w l ls 2 notitle
|
|
|
|
###################################################################################
|
|
###################################################################################
|
|
|