pgfplots
pgfplots copied to clipboard
Axis-wide `mark` setting causes inconsistency between legend and plot
When using a cycle list that does not set mark
and setting it in the axis option, the marker appears in the legend but not in the plot.
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis} [
cycle list name=color list,
mark=o,
]
\addplot+ {x^2};
\addlegendentry{test}
\end{axis}
\end{tikzpicture}
\end{document}
Setting mark
in every axis plot
instead works.
I'm not sure what is the intended behavior here (I would have expected the axis-wide setting to work, as the cycle list should not override it, but maybe that's not what's supposed to happen) but the inconsistency with the legend surely isn't it.