Skip to content

Instantly share code, notes, and snippets.

@Kappie
Created April 18, 2017 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kappie/90cac1fda12a5de0f09d0f5ed4475f4c to your computer and use it in GitHub Desktop.
Save Kappie/90cac1fda12a5de0f09d0f5ed4475f4c to your computer and use it in GitHub Desktop.
plot_example.tikz
\begin{tikzpicture}
\def \filelocation {'plots/data/order_param_vs_T_q2_N40-1000_trunc_error1e-6.dat'}
\begin{axis}[
name={plot1},
title={blaf},
xlabel={$T$},
ylabel={$M(N, T)$},
legend style = {
legend pos = south west,
},
legend cell align = left,
]
\addplot+[] gnuplot [raw gnuplot] { plot \filelocation index 3};
\addplot+[] gnuplot [raw gnuplot] { plot \filelocation index 2};
\addplot+[] gnuplot [raw gnuplot] { plot \filelocation index 1};
\addplot+[] gnuplot [raw gnuplot] { plot \filelocation index 0};
% \addplot[
% mark=none,
% black
% ]
% coordinates {(2.26918, 0) (2.26918, 1)}
% \node[above] at (2.26918, 0) {$T_c$};
\addplot[mark=none, black, dashed, semithick, update limits=false]
coordinates {(2.26918,-1) (2.26918,1)};
\legend{$n = 40$, $n = 100$, $n = 400$, $n = 1000$};
\end{axis}
\end{tikzpicture}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment