diff --git a/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex b/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex index 85ae90e1..d1ad9587 100644 --- a/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex +++ b/doc/latex/pgfplots/pgfplots.reference.axisdescription.tex @@ -1607,7 +1607,7 @@ \subsection{Legend Appearance} \end{codeexample} \end{stylekey} -\begin{pgfplotsxykeylist}{\x bar legend,\x bar interval legend} +\begin{pgfplotsxykeylist}{\x bar legend,\x bar interval legend,single \x bar legend} These style keys redefine |legend image code| such that legends use |xbar|, |ybar| or the |xbar interval| and |ybar interval| handlers. % @@ -1652,12 +1652,24 @@ \subsection{Legend Appearance} plot coordinates {(0cm,0.8em) (5pt,0.6em) (10pt,0.6em)}; }, }, - /pgfplots/ybar interval legend/.style= + /pgfplots/ybar interval legend/.style={ /pgfplots/legend image code/.code={ \draw [##1,/tikz/.cd,yshift=-0.2em,bar interval width=0.7,bar interval shift=0.5] plot coordinates {(0cm,0.8em) (5pt,0.6em) (10pt,0.6em)}; }, }, + /pgfplots/single xbar legend/.style={ + /pgfplots/legend image code/.code={ + \draw[##1,/tikz/.cd,bar width=6pt,yshift=0.2ex,bar shift=0pt] + plot coordinates {(0.8em,0pt)}; + }, + }, + /pgfplots/single ybar legend/.style={ + /pgfplots/legend image code/.code={ + \draw[##1,/tikz/.cd,bar width=6pt,yshift=-0.2em,bar shift=0pt] + plot coordinates {(0pt,0.8em)}; + }, + }, } \end{codeexample} \end{pgfplotsxykeylist}