[Pgfplots-features] Letter shift in the legend, \pgfdeclareplotmark
Brought to you by:
cfeuersaenger,
ludewich
From: Ihor R. <ro...@tu...> - 2014-03-10 09:40:58
|
Hello, I am trying to define a custom mark using \pgfdeclareplotmark. In the example shown below letter e in the legend is a bit shifted with respect to the center of the circle. It is placed properly, however, in each mark in the plot itself. How could I fix it? I am using the latest versions of PGF and Pgfplots, MikTeX 2.9 on Windows XP 32. --------------------------------------------- start of the example --- \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pgfdeclareplotmark{e} {\filldraw[fill=white,draw=black] (0pt,0pt) circle [radius=3pt] node {\scriptsize e};} \begin{document} \thispagestyle{empty} \begin{tikzpicture} \begin{axis}[] \addplot[mark=e] coordinates {(0,1) (1,0)}; \addlegendentry{test} \end{axis} \end{tikzpicture} \end{document} --------------------------------------------- end of the example --- With best wishes , ========= Ihor |