You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Axis-wide mark setting will go into every axis style so I think the expected behavior is that it affects both plot and legend.
mark=<value> stores <value> in \tikz@plot@mark. It seems currently some conditional on \tikz@plot@mark (most likely one or more of several \ifx\tikz@plot@mark\pgfutil@emptys) is wrong. It assumes every axis never contains mark setting.
As a more interesting example, if I add \tikzset{mark=x} to your example, inside axis environment and just before \addplot, both plot and legend use the axis-wide mark=o. That is, if \addplot starts with a non-empty \tikz@plot@mark, the axis-wide mark setting is piked up by both plot and legend, and that non-empty \tikz@plot@mark is totally overwritten.
Not sure if this is the same issue or just related, let me know if I should open a separate ticket. When plotting with an axis wide only marks, plot and legend agree, but a \ref does not; a line is drawn. Again, using every axis plot instead (i.e. setting only marks at \addplot) works.
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.Setting
mark
inevery 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.
The text was updated successfully, but these errors were encountered: