% This file was created by matlab2tikz.
%
%The latest updates can be retrieved from
%  http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz-matlab2tikz
%where you can also make suggestions and rate matlab2tikz.
%
\definecolor{mycolor1}{rgb}{1.00000,0.80000,1.00000}%
\definecolor{mycolor2}{rgb}{1.00000,0.00000,1.00000}%
%
\begin{tikzpicture}

\begin{axis}[%
width=0.35\linewidth,
height=0.32\linewidth,
scale only axis,
xmode=log,
xmin=1,
xmax=72,
xtick={1,2,4,8,16,32,64},
xticklabels={{$\text{2}^\text{0}$},{$\text{2}^\text{1}$},{$\text{2}^\text{2}$},{$\text{2}^\text{3}$},{$\text{2}^\text{4}$},{$\text{2}^\text{5}$},{$\text{2}^\text{6}$}},
xminorticks=true,
xlabel style={font=\color{white!15!black}},
xlabel={\#MPI},
ymode=log,
ymin=0.001,
ymax=18,
ytick={0.001,0.01,0.1,1,10},
yticklabels={$10^{\shortminus 3}$, $10^{\shortminus 2}$, $10^{\shortminus 1}$, $10^{0\hphantom{\shortminus}}$, $10^{1\hphantom{\shortminus}}$},
yminorticks=true,
ylabel style={font=\color{white!15!black}},
ylabel={Time per time step [s]},
axis background/.style={fill=white},
legend columns=2,
legend style={legend cell align=left, align=left, draw=none, fill=none, at={(1.01,1)}, anchor=north east}
]
\addplot [color=white!80!black, line width=1.5pt, mark size=2.5pt, mark=*, mark options={solid, fill=black, draw=black}]
  table[row sep=crcr]{%
1	3.294\\
2	1.6544\\
4	0.8586\\
8	0.4464\\
16	0.2724\\
32	0.17\\
64	0.1369\\
72	0.11978\\
};
\addlegendentry{Full}

\addplot [color=white!80!red, line width=1.5pt, mark size=2.0pt, mark=square*, mark options={solid, fill=red, draw=red}]
  table[row sep=crcr]{%
1	1.9134\\
2	0.9656\\
4	0.4784\\
8	0.2398\\
16	0.12062\\
32	0.06068\\
64	0.03068\\
72	0.02728\\
};
\addlegendentry{Pair}

\addplot [color=white!80!blue, line width=1.5pt, mark size=3.5pt, mark=diamond*, mark options={solid, fill=blue, draw=blue}]
  table[row sep=crcr]{%
1	1.3782\\
2	0.6694\\
4	0.3342\\
8	0.17098\\
16	0.09376\\
32	0.05862\\
64	0.05984\\
72	0.05522\\
};
\addlegendentry{Ewald}

\addplot [color=mycolor1, line width=1.5pt, mark size=2.5pt, mark=triangle*, mark options={solid, fill=mycolor2, draw=mycolor2}]
  table[row sep=crcr]{%
2	0.000845\\
4	0.0010422\\
8	0.001052\\
16	0.001325\\
32	0.0019214\\
64	0.0023596\\
72	0.0030454\\
};
\addlegendentry{Comm.}

\addplot [color=white!80!green, line width=1.5pt, mark size=2.5pt, mark=triangle*, mark options={solid, rotate=180, fill=green, draw=green}]
  table[row sep=crcr]{%
2	0.015966\\
4	0.04464\\
8	0.03442\\
16	0.0566\\
32	0.0487\\
64	0.04996\\
72	0.05416\\
};
\addlegendentry{Sync}

\addplot [color=red, dashed, line width=1.5pt]
  table[row sep=crcr]{%
1	3.294\\
72	0.04575\\
};
\addlegendentry{Opt.}

\end{axis}
\node[right, align=left]
at (-1.4,4.15) {$(b)$};
\end{tikzpicture}%