summaryrefslogtreecommitdiff
path: root/plot.gnu
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-04-10 03:21:57 -0400
committerConnor Moore <connor@hhmoore.ca>2026-04-10 03:21:57 -0400
commitef8165dc661d0fc6bf01f9d138fdcc8595eea272 (patch)
tree31f3eb6fabac91186f5da3d1ab5ec2f7595c7b25 /plot.gnu
parent3d9865a95064589a94285a1c77db36f4a38e0c13 (diff)
Added reference comparison with GNAT and script for extracing percent differences. Also plot them.HEADmaster
Diffstat (limited to 'plot.gnu')
-rw-r--r--plot.gnu30
1 files changed, 25 insertions, 5 deletions
diff --git a/plot.gnu b/plot.gnu
index e001571..80fd5cd 100644
--- a/plot.gnu
+++ b/plot.gnu
@@ -1,12 +1,32 @@
-#set term x11 persist
-set term cairolatex pdf size 4in,2.5in
+#set term x11 1 persist
+set term cairolatex pdf size 5in,3in
set output "flux.tex"
-set key reverse top left
+set key outside top center horizontal
set grid
set xlabel "Distance [cm]"
set ylabel "$\\phi$"
+set border lw 3
+# Draw the regions
+
+set lt 9 lw 1 lc rgb "black" dt 2
+set arrow from 2,graph 0 to 2, graph 1 nohead lt 9
+set arrow from 3,graph 0 to 3, graph 1 nohead lt 9
+set arrow from 5,graph 0 to 5, graph 1 nohead lt 9
+set arrow from 6,graph 0 to 6, graph 1 nohead lt 9
+
+
+plot 'flux.out' using 1:($2 + 3*$3):($2 - 3*$3) with filledcurves lc rgb "#CCCCFF" title "$\\pm 3\\sigma$", \
+ 'flux.out' using 1:2 with lines lc rgb "red" lw 2 title "$\\overline{\\phi}_{MC}$", \
+ 'test.ref' using 1:2 with lines lc rgb "green" lw 1 dt 2 title "$\\overline{\\phi}_{ref}$"
+
+
+#set term x11 2 persist
+set output "error.tex"
+set yrange [-15:15]
+set key off
+
+set ylabel "Percent Difference [\\%]"
+plot 'diff.out' using 1:2 with lines
-plot 'flux.out' using 1:($2 + $3):($2 - $3) with filledcurves lc rgb "#CCCCFF" title "$\\pm 1 \\sigma$", \
- 'flux.out' using 1:2 with lines lc rgb "red" title "$\\overline{\\phi}$"