I would like to adjust the width of the legend lines (images) in PGFplots. Since legend is a TikZ matrix, I can adjust the separation between lines, space between text and lines by changing the matrix style. I tried to find a matrix style property to change the width of each cell (here the cell where legend lines are positioned in), but could not find any answer for that too. This is a sample code:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{
compat=newest,
plot coordinates/math parser=false,
every axis/.append style={
tick label style={font=\scriptsize}, % new bit
label style={font=\scriptsize}, % new bit
legend style={font=\scriptsize,row sep=-0.1cm,/tikz/every odd column/.append style={column sep=0.01cm}},% new bit
xlabel shift=0.5em,
ylabel shift=-0.5em
}
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
xlabel={XLABEL},
ylabel={YLABEL},
axis lines*=left,
ylabel absolute, ylabel style={yshift=-1em}]
\addplot+[mark=none] plot {x^2};
\addlegendentry{a}
\addplot+[mark=none] plot {1};
\addlegendentry{b}
\addplot+[mark=none] plot {x};
\addlegendentry{c}
\end{axis}
\end{tikzpicture}
\end{document}
So my question is how to adjust the lines (images) in a legend?