From 8e0621d448eb68a5ec5a900536a4278d85726006 Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Tue, 7 Jul 2026 11:06:00 +0200 Subject: Updated plotting script to be more verbose with types --- plot.gnu | 16 ++++++++-------- 1 file 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 -- cgit v1.2.3