Closed pgf-tikz-bot closed 4 years ago
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/55/#cb3e Author: cfeuersaenger Timestamp: 2012-10-30 19:04:43
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/55/#ae5c Author: cfeuersaenger Timestamp: 2012-10-30 19:04:43
Thanks for the report!
I have fixed it.
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/55/ Author: tentotwo Timestamp: 2012-10-29 15:58:36
Legend images created with \label and \ref do not take into account options set using "legend image post style".
See the following MWE:
\documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[legend image post style={mark=*}, legend entries={Correct}] \addplot [mark=none,smooth,domain=0:2] {-x*(x-2)}; \label{myplot} \addplot [only marks,forget plot] coordinates {(0.5,0.75) (1,1) (1.5,0.75)}; \end{axis} \end{tikzpicture}
\ref{myplot} Incorrect \end{document}