\documentclass{standalone}
\input{palette}
\usepackage{pgfplots}
\pgfplotsset{compat=default}
% With this compatability setting, pgfplots runs in backwards compatability mode using pgfplots version pre-1.3. It's safe to use a more current version, but axis and tick labels may move and need to be repositioned.

%\usepackage{txfonts}
%\usepackage[mathscr]{euscript}
% The above font packages were used to generate figures for the article, but are here commented out to ensure better compability.

\usetikzlibrary{pgfplots.groupplots}

\newcommand{\mytick}[2]{\draw[thick,#2] (#1, 0.01) -- (#1, -0.15);}

\begin{document}
	\begin{tikzpicture}
	\def\xclas{1.58}

	
	\begin{axis}[name=plot1,
	width=0.9\textwidth,
	height=0.4\textwidth,
	xmin=0,
	xmax=2.6,
	ymin=0,
	xticklabels = {,,},
	ylabel=$m^\alpha$,
	yticklabel style = {/pgf/number format/fixed, /pgf/number format/zerofill, /pgf/number format/precision=1, xshift=0.0cm},
	tickpos=left,
	ytick align=outside,
	ymax=0.6,
	ytick = {0.0, 0.1, 0.2, ..., .5},
	yticklabels = {0.0,0.1, 0.2, 0.3, 0.4, 0.5},
	xticklabels = {,,},
	xmajorticks=false,
	legend style = {anchor = south east,at={(axis description cs: 1, 0.2)}},
	title = {(a)}, title style = {at = {(axis description cs:0.97,0.76)}},
	]
	\addplot[fill= white, draw = virdark, mark=*, dashed, mark options={solid}] table [x=<h>, y=<Mx>, col sep=space, y expr = abs(\thisrowno{2})] {DMRG_Data/StaggeredMagnetization_h_mixedm.dat};
	\addplot[fill= white, draw = virmiddle, mark=square*, dotted, mark options={solid}] table [x=<h>, y=<My>, col sep=space, y expr = abs(\thisrowno{3})] {DMRG_Data/StaggeredMagnetization_h_mixedm.dat};
	\addplot[draw = black, color = black, mark=diamond*, densely dashed, mark options={solid}] table [x=<h>, y=<Mz>, col sep=space, y expr = abs(\thisrowno{4})] {DMRG_Data/StaggeredMagnetization_h_mixedm.dat};
	
	\legend{\textcolor{virdark}{$m^x$}, \textcolor{virmiddle}{$m^y$}, \textcolor{black}{$m^z$}};
\end{axis}
	
	%
	\begin{axis}[at={(plot1.south west)},anchor=north west,
	width=0.9\textwidth,
	height=0.4\textwidth,
	xlabel=$h_x/J$,
	xmin=0,
	xmax=2.6,
	ymin=0,
	ymax=0.45,
	xticklabel style = {/pgf/number format/fixed, /pgf/number format/zerofill, /pgf/number format/precision=1},
	xtick = {0.0, 0.2, 0.4, ..., 2.3},
	ylabel=$m^\alpha_\mathrm{st}$,
	yticklabel style = {/pgf/number format/fixed, /pgf/number format/zerofill, /pgf/number format/precision=0, xshift=0.0cm},
	ytick pos=left,
	ytick = {0.0, 0.1, 0.2, ..., .5},
	yticklabels = {0.0, 0.1, 0.2, 0.3, 0.4, 0.5},
	ytick align=outside,
	y tick label style = {black},
	legend style = {anchor = south east,at={(axis description cs: 1, 0.3)}},
	title = {(b)}, title style = {at = {(axis description cs:0.97,0.75)}}, xlabel style = {at = {(axis description cs: 0.98,0.18)}}]
	\addplot[fill= white, draw = virdark, mark=*, dashed, mark options={solid}] table [x=<h>, y=<MxSt>, col sep=space, y expr = abs(\thisrowno{5})] {DMRG_Data/StaggeredMagnetization_h_mixedm.dat};
	\addplot[fill= white, draw = virmiddle, mark=square*, dotted, mark options={solid}] table [x=<h>, y=<MySt>, col sep=space, y expr = abs(\thisrowno{6})] {DMRG_Data/StaggeredMagnetization_h_mixedm.dat};
	\addplot[draw = black, color = black, mark=diamond*, densely dashed, mark options={solid}] table [x=<h>, y=<MzSt>, col sep=space, y expr = abs(\thisrowno{7})] {DMRG_Data/StaggeredMagnetization_h_mixedm.dat};

	\legend{\textcolor{virdark}{$m^x_\mathrm{st}$}, \textcolor{virmiddle}{$m^y_\mathrm{st}$}, \textcolor{black}{$m^z_\mathrm{st}$}};
	\end{axis}
	%
	\end{tikzpicture}
	
\end{document}


