\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=12cm,	width=18cm,	grid=major,
    		x unit=\SI{}{\micro\second}, y unit=\SI{}{\mega\hertz},
			xlabel=$t$,	ylabel=$f$,
			ymin=550,ymax=675,
			%ymin=620,ymax=630,
			xmin=0, xmax=1.25,
			ytick distance = 25,
			xtick = {0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.25},
			set layers,
			x tick label style={/pgf/number format/.cd, set thousands separator={}},
			xticklabel shift = 2 pt,
			legend pos=north east,
			cycle list/Dark2,
			restrict y to domain=0:5000
		]					
			
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x1}*1e6, y expr=\thisrow{y1}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv}; % SS lo R hi V cold			
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x2}*1e6, y expr=\thisrow{y2}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x3}*1e6, y expr=\thisrow{y3}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x4}*1e6, y expr=\thisrow{y4}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv}; % SS lo R hi V hot
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x5}*1e6, y expr=\thisrow{y5}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};% SS hi R hi V cold
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x6}*1e6, y expr=\thisrow{y6}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x7}*1e6, y expr=\thisrow{y7}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x8}*1e6, y expr=\thisrow{y8}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x9}*1e6, y expr=\thisrow{y9}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x10}*1e6, y expr=\thisrow{y10}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x11}*1e6, y expr=\thisrow{y11}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x12}*1e6, y expr=\thisrow{y12}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x13}*1e6, y expr=\thisrow{y13}*1e-6, col sep=semicolon] {../cadence_data/trim_locking_dynamic.csv};
			%\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x14}*1e9, y expr=\thisrow{y14}*1e-6, col sep=semicolon] {../cadence_data/ilro_locking_dynamic.csv};
%			\addplot +[solid, thick,mark=none] table [x expr=\thisrow{x15}*1e9, y expr=\thisrow{y15}*1e-6, col sep=semicolon] {../cadence_data/ilro_locking_dynamic.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x16}*1e9, y expr=\thisrow{y16}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x17}*1e9, y expr=\thisrow{y17}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x18}*1e9, y expr=\thisrow{y18}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			%\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x19}*1e9, y expr=\thisrow{y19}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x20}*1e9, y expr=\thisrow{y20}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x21}*1e9, y expr=\thisrow{y21}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x22}*1e9, y expr=\thisrow{y22}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x23}*1e9, y expr=\thisrow{y23}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x24}*1e9, y expr=\thisrow{y24}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x25}*1e9, y expr=\thisrow{y25}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
%			\addplot +[solid, smooth, thick,mark=none] table [x expr=\thisrow{x26}*1e9, y expr=\thisrow{y26}*1e-6, col sep=semicolon] {../cadence_data/locking_wvfs.csv};
			
			
		\end{axis}
	\end{tikzpicture}
\end{document}