 \documentclass{standalone}
    \usepackage{amsmath}
    \usepackage{pgfplots}
    \usetikzlibrary{external}
    \tikzexternalize
    \tikzset{external/system call={latex \tikzexternalcheckshellescape
     -halt-on-error -interaction=batchmode -jobname "\image" "\texsource";
     dvips -o "\image".eps "\image".dvi}}

%\documentclass[11 pt]{standalone}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{nonfloat}
\usepackage{upgreek}
\usepackage{color}
\usepackage{siunitx}
\usepackage{lmodern}
\DeclareSIUnit\celcius{\degree C}
\sisetup{per-mode=symbol}
\usepackage{lipsum}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
%\pgfrealjobname{Latex Plots}
\definecolor{blues1}{RGB}{198, 219, 239}
\definecolor{blues2}{RGB}{158, 202, 225}
\definecolor{blues3}{RGB}{107, 174, 214}
\definecolor{blues4}{RGB}{49, 130, 189}
\definecolor{blues5}{RGB}{8, 81, 156}
\definecolor{blues5}{RGB}{2, 25, 132}
\pgfplotscreateplotcyclelist{colorbrewer-blues}{
{blues1},
{blues2},
{blues3},
{blues4},
{blues5},
{blues6}
}
\usepackage{pgfplotstable}
%\usepgfplotslibrary{external} 
%\tikzexternalize
%\pgfplotsset{compat=newest}
%\usepackage{lipsum}
\usepackage{blindtext}
\usepackage{geometry}
\geometry{a4paper}
\geometry{margin = 2.5 cm}
%\usepackage{minipage}
%\newcommand\myfigure[1]{%
%\medskip\noindent\begin{minipage}{\columnwidth}
%\centering%
%#1%
%figure,caption, and label go here
%\end{minipage}\medskip}
%\usepackage[normal]{subfloat}
\usepackage{amssymb, amsfonts, textcomp, fontenc, latexsym,amsmath}
\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc}
\usepackage{booktabs}

%\sisetup{per-mode=symbol}
%\usepackage{lipsum}
%\usepackage{pgfplots}
%\usepgfplotslibrary{external}
%\tikzexternalize% activate externalization!
  %\pgfrealjobname{Latex Plots}
%\definecolor{blues1}{RGB}{198, 219, 239}
%\definecolor{blues2}{RGB}{158, 202, 225}
%\definecolor{blues3}{RGB}{107, 174, 214}
%\definecolor{blues4}{RGB}{49, 130, 189}
%\definecolor{blues5}{RGB}{8, 81, 156}
%\definecolor{blues5}{RGB}{2, 25, 132}
%\pgfplotscreateplotcyclelist{colorbrewer-blues}{
%{blues1},
%{blues2},
%{blues3},
%{blues4},
%{blues5},
%{blues6}
%}
%\usepackage{pgfplotstable}
%\usepgfplotslibrary{external} 
%\tikzexternalize
%\pgfplotsset{compat=newest}
%\usepackage{lipsum}
%\usepackage{blindtext}
%\usepackage{geometry}
%\usepackage{minipage}
%\newcommand\myfigure[1]{%
%\medskip\noindent\begin{minipage}{\columnwidth}
%\centering%
%#1%
%figure,caption, and label go here
%\end{minipage}\medskip}

%\usepackage[normal]{subfloat}
%\usepackage{amssymb, amsfonts, textcomp, fontenc, latexsym,amsmath}
%\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc}
%\usepackage{booktabs}
%\usepackage{booktabs,threeparttable}
%\usepackage{setspace}
%\usepackage{rotating}
%\DeclareGraphicsExtensions{.eps,.ps,.eps, .gz, .ps, .gz, .eps, .png, .tiff}


\begin{document}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pgfplotsset{compat=1.8}
\begin{tikzpicture}
\begin{axis}[
xlabel= {4Sin$\uptheta$ / $\uplambda$},
ylabel={$\upbeta$$_{hkl}$Cos$\uptheta$/$\uplambda$}]
[xmin=0,xmax=3,domain=1:1000]
[ymin=0, ymax=0.02, y step =0.002]
\addplot +[only marks, mark = square, color=black] table[col sep = comma, x = whxferriteafter, y = whyferriteafter]{WHplot.csv};
\end{axis}
\end{tikzpicture}
\end{document}

