Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/relative_energy.fig/compare.gnuplot')
-rw-r--r--figs/relative_energy.fig/compare.gnuplot31
1 files changed, 31 insertions, 0 deletions
diff --git a/figs/relative_energy.fig/compare.gnuplot b/figs/relative_energy.fig/compare.gnuplot
new file mode 100644
index 0000000..7461923
--- /dev/null
+++ b/figs/relative_energy.fig/compare.gnuplot
@@ -0,0 +1,31 @@
+set ylabel "energy relative error"
+set xlabel "$\\rho$"
+
+set xtics 1e-6, 100, 100
+set xtics add ("$10^{-6}$" 0.000001, "$10^{-4}$" 0.0001, "$10^{-2}$" 0.01, "$1$" 1.0, "$10^2$" 100)
+unset mxtics
+
+set xrange [0.000001:100]
+
+# default output canvas size: 12.5cm x 8.75cm
+set term lua tikz size 8,6 standalone
+
+set key off
+
+
+# set linestyle
+set style line 1 linetype rgbcolor "#4169E1" linewidth 2
+set style line 2 linetype rgbcolor "#DC143C" linewidth 2
+set style line 3 linetype rgbcolor "#32CD32" linewidth 2
+set style line 4 linetype rgbcolor "#4B0082" linewidth 2
+set style line 5 linetype rgbcolor "#DAA520" linewidth 2
+
+set pointsize 1
+
+set logscale xy
+
+plot \
+ "simpleq2.dat" using 1:($3<1e-5 ? abs($2-$5)/$5 : 1/0) with lp ls 1 ,\
+ "bigeq2.dat" using 1:($3<1e-5 ? abs($2-$5)/$5 : 1/0) with lp ls 4 ,\
+ "2020-08-27+2.dat" using 1:(abs($4-$2)/$2) with lp ls 2
+