I have a working code. Unfortunately though, it appears as if the error bars are being added twice. Once in blue and once in gray. I don't understand what is causing this. How can I fix it? Here is the data file data.csv.
\documentclass[crop,tikz]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=\linewidth,
legend style={nodes={scale=0.5, transform shape}, anchor=north east},
xmin = 0, xmax = 30,
ymin = 45, ymax =65,
xlabel= {Time[s]},
ylabel={ST},
error bars/y dir=both,
error bars/y explicit]
\addplot+[ color=blue, mark=., thin, error bars/.cd, error mark options={gray}]
table[col sep=comma, x=Base_T, y=Base_ST, y error=Base_SD] {data.csv} ;
\addlegendentry{Baseline}
\addplot+[ color=green,mark=., thin]
table[col sep=comma, x=pn_T, y=pn_ST] {data.csv} ;
\addlegendentry{Test1};
\end{axis}
\end{tikzpicture}
\end{document}
compat
level - see my answer