summaryrefslogtreecommitdiff
path: root/plot.gnu
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-07 11:06:00 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-07 11:06:00 +0200
commit8e0621d448eb68a5ec5a900536a4278d85726006 (patch)
treea29620e762c0b436d88495d396c846206245695a /plot.gnu
parent63206fff49de9f8d82eb6bc05c643655fa0e9906 (diff)
Updated plotting script to be more verbose with types
Diffstat (limited to 'plot.gnu')
-rw-r--r--plot.gnu16
1 files changed, 8 insertions, 8 deletions
diff --git a/plot.gnu b/plot.gnu
index 859a6ab..249693b 100644
--- a/plot.gnu
+++ b/plot.gnu
@@ -1,14 +1,14 @@
set term x11 persist
-exp_keff = system("cat results/explicit.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '+' -f 1 | sed 's/ //g'")
-exp_pm = system("cat results/explicit.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '-' -f 2 | sed 's/ //g'")
-exp_ppm = exp_keff+exp_pm
-exp_mpm = exp_keff-exp_pm
+exp_keff=real(system("cat results/explicit.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '+' -f 1 | sed 's/ //g'"))
+exp_pm=real(system("cat results/explicit.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '-' -f 2 | sed 's/ //g'"))
+exp_ppm=exp_keff+exp_pm
+exp_mpm=exp_keff-exp_pm
-vwh_keff = system("cat results/vwh.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '+' -f 1 | sed 's/ //g'")
-vwh_pm = system("cat results/vwh.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '-' -f 2 | sed 's/ //g'")
-vwh_ppm = vwh_keff+vwh_pm
-vwh_mpm = vwh_keff-vwh_pm
+vwh_keff=real(system("cat results/vwh.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '+' -f 1 | sed 's/ //g'"))
+vwh_pm=real(system("cat results/vwh.out | grep 'Combined k-effective' | cut -d '=' -f 2 | cut -d '-' -f 2 | sed 's/ //g'"))
+vwh_ppm=vwh_keff+vwh_pm
+vwh_mpm=vwh_keff-vwh_pm
set arrow from graph 0, first exp_keff to graph 1, first exp_keff nohead front lc rgb "red" dt 2
set arrow from graph 0, first vwh_keff to graph 1, first vwh_keff nohead front lc rgb "blue" dt 2