pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 35 forks source link

\label legends do not honour "legend image post style" #55

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 12 years ago

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}

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/55/#cb3e Author: cfeuersaenger Timestamp: 2012-10-30 19:04:43

pgf-tikz-bot commented 12 years ago

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.