I'm in a situation where I need to add error bars to my pgfplots scatter graph like in the example shown at this link: example
The code I have so far is shown below which produces a simple scatter graph. My issue is that I need different error bar lengths from left, right, above and below each data point. I have found online that just adding 'error=xxx' in the table argument will create error bars of the same length above and below the datapoint however I need these to be different lengths and I also need the horizontal bars.
\begin{tikzpicture}[trim axis left, trim axis right]
\begin{axis}[
xlabel={Voltage /V},
ylabel={Current /mA},
ylabel near ticks, yticklabel pos=left,
axis y line*=left,
xmin=0,
xmin=10,
ymin=0,
ymax=10,
]
\addplot+[mark size=1pt,mark options=blue,blue] table[x=V,y=mA] {Graphs/graphdata.dat}
node [pos=0.9,anchor=south west,text=black] {};
\label{examplegraph}
\end{axis}%
\end{tikzpicture}%
Any help would be much appreciated. Many thanks.
graphdata.dat
. See section 4.12 Error Bars in the package documentation, page 416 -- 422.