\documentclass[border=0mm]{standalone}

\usepackage{cmap}
\usepackage[cp1250]{inputenc}	
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{float}
\usepackage{siunitx}
\usepackage{amsmath}
\usepackage{upgreek}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepgfplotslibrary{fillbetween}
\usepgfplotslibrary{units}
\usepgfplotslibrary{colorbrewer}
% \makeatletter
%\pgfplotsset{
%  unit code/.code 2 args=
%    \begingroup
%    \protected@edef\x{\endgroup\si{#2}}\x
%} 
%\makeatother

\pgfkeys{%
  /tikz/on layer/.code={
    \pgfonlayer{#1}\begingroup
    \aftergroup\endpgfonlayer
    \aftergroup\endgroup
  }
}

\begin{document}
	\begin{tikzpicture}
		\begin{axis}[
			height=7cm,	width=11cm,	grid=major,
    		x unit=\%, y unit=\SI{}{\pico\second},
			xlabel=$I_\mathrm{error}/I_\mathrm{CP}$,	ylabel=$t_\mathrm{in}$,
			ymin=-15,ymax=10,
			xmin=-20, xmax=20,
			ytick distance = 5,
			%xtick ={580,590,600,610,625,640,650,660},
			set layers,
			%y tick label style={/pgf/number format/.cd, set thousands separator={}},
			xticklabel shift = 2 pt,
			legend style={at={(0.5,0.9)},anchor=north}
			%cycle list/Dark2
		]					
			\addplot +[solid, smooth, thick,mark=none] table [x expr=100*\thisrow{ierr}/4e-6, y expr=\thisrow{phase}*1e12/17.777, col sep=comma] {../cadence_data/fpd_mis.csv};
			
		\end{axis}
	\end{tikzpicture}
\end{document}