\documentclass[parskip=full,paper=landscape]{scrartcl}
\usepackage{latex-init}
\definecolor{unilj}{cmyk}{0.00, 0.94, 0.94, 0.06}
\definecolor{lso}{cmyk}{0.50, 0.00, 1.00, 0.00}
\hypersetup{pdftitle={Preizkus merilnih diod (št. 4, 11.9.2017)}, pdfauthor={Laboratorij za sevanje in optiko FE UL}}
\begin{document}\pagestyle{empty}\centering\newgeometry{top=2cm, bottom=2cm, left=2cm, right=2cm}

\textsf{\large{Preizkus merilnih diod (št. 4, 11.9.2017)}}\medskip

\begin{tikzpicture}\begin{axis}
[
width=\linewidth,
height=12cm,
grid=major,
xmin=0,
xmax=13,
% axis x line=middle,
xlabel={\textbf{\small{f}} \footnotesize{[GHz]}},
x label style={at={(0.5,0)}, yshift=-0.5cm, anchor=north},
% xtick={2.0, 2.1, 2.2, ..., 2.5},
xticklabel=\scriptsize{\pgfmathprintnumber[fixed, fixed zerofill, precision=1, use comma]{\tick}},
extra x ticks={0.05, 6.5, 8.0, 12.5},
extra x tick style={xticklabel=\empty, grid style={thick, black, dashed}},
ymin=-45,
ymax=15,
axis y line=middle,
% ytick={-3, 0, ..., 9},
yticklabel=\scriptsize{\pgfmathprintnumber[fixed, fixed zerofill, precision=0, use comma]{\tick}},
% extra y ticks={-3},
extra y tick style={xticklabel=\empty, grid style={thick, black, dashed}},
legend columns=3,
legend style={at={(0.5,1)}, yshift=0.5cm, anchor=south, cells={align=left, anchor=west}}
]

\addplot[opacity=0]{0}; \addlegendentry{\hspace{-16.5pt}\textbf{\small{P$_\textrm{AD}$}} \footnotesize{[$\sim$dBm]}\hspace{24pt}}

\addplot[forget plot=false,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
very thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-lf-m13_20170911.csv};
\addlegendentry{\scriptsize{S1}\hspace{12pt}}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
very thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-m13_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-lf-m39_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-m39_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-lf-m33_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-m33_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-lf-m23_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-m23_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-lf-m3_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-m3_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-p7_20170911.csv};
% \addlegendentry{}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
thick, lso, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S1-hf-p13_20170911.csv};
% \addlegendentry{}

\addplot[forget plot=false,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
very thick, cyan, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S2-lf-m13_20170911.csv};
\addlegendentry{\scriptsize{S2}}
\addplot[forget plot=true,
% restrict x to domain=0:1,
mark=none, mark options={scale=1, opacity=1},
very thick, cyan, opacity=1, smooth]
table[col sep=comma, skip first n=1, x index=0, x expr={\thisrowno{0}/1000000}, y index=1]
{S2-hf-m13_20170911.csv};
% \addlegendentry{}

\end{axis}\end{tikzpicture}

\end{document}
