[Pgfplots-features] Problem with legend, again
Brought to you by:
cfeuersaenger,
ludewich
From: Ihor R. <ro...@tu...> - 2014-03-19 17:10:17
|
Dear Christian, Thank you very much for your very kind answer. After your correction everything is OK with my plot until any kind of horizontal alignment of the legend is used. Unfortunately, either "legend cell align=left" (used in the example below) or "legend cell align=right" shifts letter 'e' out of the circle in the legend. I have tried to control letter 'e' position using 'align=' key of the node in pgfdeclareplotmark without any success. Is it a bug or (very advanced) feature? \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pgfdeclareplotmark{e} {\filldraw[fill=white,draw=black] (0pt,0pt) circle [radius=3pt] node[text depth=0pt] {\scriptsize e};} \begin{document} \thispagestyle{empty} \begin{tikzpicture} \begin{axis}[legend cell align=left] %% alignment of the legend \addplot[mark=e] coordinates {(0,1) (1,0)}; \addlegendentry{test} \end{axis} \end{tikzpicture} \end{document} With best wishes , ========= I hor |