From e3310432fd9f4c7b4a5415d8f9ac8ca586d30b59 Mon Sep 17 00:00:00 2001
From: Jaron Kent-Dobias <jaron@kent-dobias.com>
Date: Fri, 30 Jul 2021 08:17:40 +0200
Subject: Work on figures.

---
 ising_scaling.tex | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 51 insertions(+), 1 deletion(-)

(limited to 'ising_scaling.tex')

diff --git a/ising_scaling.tex b/ising_scaling.tex
index bed9db3..18edea3 100644
--- a/ising_scaling.tex
+++ b/ising_scaling.tex
@@ -20,6 +20,7 @@
 \usepackage{graphicx}
 \usepackage{xcolor}
 \usepackage{tikz-cd}
+\usepackage[subfolder]{gnuplottex} % need to compile separately for APS
 
 \begin{document}
 
@@ -482,7 +483,11 @@ The scaling function has a number of free parameters: the position $\theta_c$ of
   \begin{tabular}{c|ccccccccc}
      & \multicolumn{9}{c}{$n$} \\
      & 1 & 3 & 5 & 7 & 9 & 11 & 13 & 15 & 17 \\
-    \hline
+    \hline\hline
+    $n_-$ & 2 & 3 & 3 & 4 & 5 & 6 & 6 & 6 \\
+    $n_0$ & 1 & 2 & 3 & 4 & 4 & 5 & 7 & 8 \\
+    $n_+$ & 2 & 2 & 4 & 4 & 6 & 6 & 6 & 8
+    \\ \hline
     $\theta_c$ &
       1.19022 &
       1.24954 &
@@ -653,6 +658,51 @@ The scaling function has a number of free parameters: the position $\theta_c$ of
 
 \subsection{Comparison}
 
+\begin{figure}
+  \begin{gnuplot}[terminal=epslatex, terminaloptions={size 8.65cm,5.35cm}]
+    dat1 = 'data/glow_series_numeric.dat'
+    dat2 = 'data/glow_series_ours_0.dat'
+    dat3 = 'data/glow_series_caselle.dat'
+    set key top left Left reverse
+    set logscale y
+    set xlabel '$n$'
+    set ylabel '$\mathcal F_n$'
+    plot \
+      dat1 using 1:(abs($2)) title 'Numeric', \
+      dat2 using 1:(abs($2)) title 'Ours ($n=0$)', \
+      dat3 using 1:(abs($2)) title 'Caselle'
+  \end{gnuplot}
+  \caption{
+  }
+\end{figure}
+
+\begin{figure}
+  \begin{gnuplot}[terminal=epslatex, terminaloptions={size 8.65cm,5.35cm}]
+    dat1 = 'data/glow_series_numeric.dat'
+    dat2 = 'data/glow_series_ours_0.dat'
+    dat3 = 'data/glow_series_caselle.dat'
+
+    ratLast(x) = (back2 = back1, back1 = x, back1 / back2)
+    init(x) = (back1 = back2 = 0)
+
+    back1 = 0
+    back2 = 0
+
+    set xrange [0:0.55]
+    set yrange [0:10]
+
+    set xlabel '$1/n$'
+    set ylabel '$\mathcal F_n/\mathcal F_{n-1}$'
+
+    plot \
+      dat1 using (1/$1):(abs(ratLast($2))) title 'Numeric', \
+      dat2 using (1/$1):(abs(ratLast($2))) title 'Ours ($n=0$)', \
+      dat3 using (1/$1):(abs(ratLast($2))) title 'Caselle'
+  \end{gnuplot}
+  \caption{
+  }
+\end{figure}
+
 \section{The three-dimensional Ising model}
 
 \cite{Butera_2011_Free}
-- 
cgit v1.2.3-70-g09d2

