seniority/F2_cc-pvtz/plot_pes.gnu

86 lines
3.0 KiB
Plaintext
Raw Normal View History

2021-11-03 18:08:46 +01:00
#!/bin/gnuplot
#set terminal pngcairo size 600,600 enhanced font 'Verdana,10'
#set output 'plot_pes.png'
2022-01-14 17:05:13 +01:00
set terminal postscript eps size 5.3,3.0 enhanced color \
font 'Helvetica,16' linewidth 2
set output 'plot_pes.eps'
xmin=0.95
xmax=10.0
ymin=-199.35
ymax=--199.00
2021-11-03 18:08:46 +01:00
#set xrange[0.95:6.0]
set xrange[0.95:10.0]
# VIEW 1:
#set yrange[-199.35:-198.75]
# VIEW 2:
set yrange[-199.35:-199.00]
2022-01-14 17:05:13 +01:00
set style line 1 dt 1 lw 2 linecolor rgb "gray"
set style line 2 dt 1 lw 2 linecolor rgb "black"
set style line 3 dt 1 lw 2 linecolor rgb "light-red"
set style line 4 dt 1 lw 2 linecolor rgb "sea-green"
set style line 5 dt 2 lw 2 linecolor rgb "sea-green"
set style line 6 dt 1 lw 2 linecolor rgb "orange"
set style line 7 dt 2 lw 2 linecolor rgb "orange"
2021-11-03 18:08:46 +01:00
set xlabel 'Distance (angstrom)'
set ylabel 'Energy (Hartree)'
2022-01-14 17:05:13 +01:00
# 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
# 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
fit [1.6:2.0] [*:*] f(x) 'pes_rhf.dat' u 1:($2) via a,b
#set label 1 'RHF' at 1.8,-198.60 rotate by r(a) center tc ls 1 #font 'Verdana,20'
fit [5.0:7.0] [*:*] f(x) 'pes_s4.e2.dat' u 1:($2) via a,b
set label 2 'CISD' at 5.0,-198.91 rotate by r(a) center tc ls 3 #font 'Verdana,20'
fit [5.0:7.0] [*:*] f(x) 'pes_s6.e3.dat' u 1:($2) via a,b
set label 3 'CISDT' at 5.0,-198.95 rotate by r(a) center tc ls 3 #font 'Verdana,20'
fit [5.0:7.0] [*:*] f(x) 'pes_s8.e4.dat' u 1:($2) via a,b
set label 4 'CISDTQ' at 5.0,-199.037 rotate by r(a) center tc ls 3 #font 'Verdana,20'
fit [7.0:9.0] [*:*] f(x) 'pes_CIo2.dat' u 1:($2) via a,b
set label 12 'CIo2' at 7.0,-198.923 rotate by r(a) center tc ls 4 #font 'Verdana,20'
fit [7.0:9.0] [*:*] f(x) 'pes_CIo3.dat' u 1:($2) via a,b
set label 13 'CIo3' at 7.0,-199.037 rotate by r(a) center tc ls 4 #font 'Verdana,20'
#fit [7.0:9.0] [*:*] f(x) 'pes_CIo4.dat' u 1:($2) via a,b
#set label 14 'CIo4' at 7.0,-199.062 rotate by r(a) center tc ls 4 #font 'Verdana,20'
fit [7.0:9.0] [*:*] f(x) 'pes_fci.dat' u 1:($2) via a,b
set label 20 'FCI' at 9.0,-199.062 rotate by r(a) center tc ls 2 #font 'Verdana,20'
2021-11-03 18:08:46 +01:00
plot 'pes_rhf.dat' w l ls 1 notitle, \
'pes_s4.e2.dat' w l ls 3 notitle, \
'pes_s6.e3.dat' w l ls 3 notitle, \
'pes_s8.e4.dat' w l ls 3 notitle, \
'pes_CIo1.dat' w l ls 5 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
2022-01-14 17:05:13 +01:00
# 'pes_pccd.dat' w l ls 6 notitle, \
2021-11-03 18:08:46 +01:00
# 'pes_s0.e2.dat' w l ls 1 notitle, \
# 'pes_s2.e2.dat' w l ls 1 notitle, \
# 'pes_s2.e3.dat' w l ls 1 notitle, \
# 'pes_s4.e3.dat' w l ls 1 notitle, \
# 'pes_s0.e4.dat' w l ls 1 notitle, \
# 'pes_s2.e4.dat' w l ls 1 notitle, \
# 'pes_s4.e4.dat' w l ls 1 notitle, \
2022-01-14 17:05:13 +01:00
#pause -1