Open pgf-tikz-bot opened 12 years ago
Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/29/#74f1 Author: cfeuersaenger Timestamp: 2012-12-25 21:36:26
I agree that it easily leads to usage issues.
Whenever I scanned through my list of feature requests, I thought about a suitable solution for this one.
One could be to make some switch of sorts "enable marks=true|false" which is evaluated "late". This could be toggled at will, and it could override the current marker to none if it is false (without loosing the current marker if it is reenabled).
Would that appear to be useful? I fear that it causes usability issues at the other end - caused by the very same weakness as "no markers". After all, why should someone say "no markers" in the first place? Only to override the cycle list ... but the "no markers" name does not really indicate that it has anything to do with cycle lists. And neither would "enable markers". Not really satisfactory in my eyes... does it sound better in yours?
Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/29/ Author: tentotwo Timestamp: 2012-06-13 17:41:14
Currently, the "no markers" style sets "every axis plot post/.append style={mark=none}", which means you cannot switch markers back on for a single plot without wrapping the "mark" command in "every axis plot post/.append style" as well, which is pretty tedious. Also, in combination with the PGF option "only marks", this leads to unexpected behaviour: The "*" markers will be used, regardless of the "mark=..." option provided in the "\addplot" command (see the MWE below).
It would be nice if the "no markers" style could be turned into something that can be switched off locally.
\documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot [mark=o, mark size=5] {rnd}; \end{axis} \end{tikzpicture}
\begin{tikzpicture} \begin{axis}[no markers] \addplot [no markers, mark=o, only marks, mark size=5] {rnd}; \end{axis} \end{tikzpicture}
\end{document}