summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-27 08:46:33 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-27 08:46:33 +0200
commitb5a08c6475beaf07308e55247801947c10b46bbf (patch)
tree26bd14d3eda1895214c842ef76ab947ae4296a22
parente4a4f81d6160a428e0d73a5a021af2444871aeb7 (diff)
Added support for per-material yranges and labelling
-rw-r--r--plot.gnu20
1 files changed, 19 insertions, 1 deletions
diff --git a/plot.gnu b/plot.gnu
index 2c7765a..f61110d 100644
--- a/plot.gnu
+++ b/plot.gnu
@@ -1,4 +1,5 @@
set term qt persist
+set title ARG1
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'"))
@@ -16,9 +17,26 @@ set arrow from graph 0, first vwh_keff to graph 1, first vwh_keff nohead front l
set object 1 rectangle from graph 0, first exp_mpm to graph 1, first exp_ppm back fc rgb "red" fillstyle pattern 4 noborder
set object 2 rectangle from graph 0, first vwh_mpm to graph 1, first vwh_ppm back fc rgb "blue" fillstyle pattern 4 noborder
-set yrange [1.45:1.7]
+if (ARG1 eq "uo2") {
+ set yrange [1.36:1.5]
+}
+
+if (ARG1 eq "uc010") {
+ set yrange [1.5:1.64]
+}
+
+if (ARG1 eq "uco20") {
+ set yrange [1.5:1.72]
+}
+
+if (ARG1 eq "un") {
+ set yrange [0.68:0.82]
+}
+
set format y "%.5f"
set style fill pattern 4 noborder
+set ylabel "k_{eff}"
+set xlabel "RPT/RRPT Radius [cm]"
plot "results/rpt_table" using 1:2:3 with yerrorlines dt 2 title "RPT K_{eff}", \
"results/rrpt_table" using 1:2:3 with yerrorlines dt 2 title "RRPT K_{eff}", \