# 'only marks' option breaking cycle lists

I am trying to create a series of plots where data is presented with fitted curves, so what I need is for the data plots to be scatter plots with hollow marks and the fits to be solid lines with no marks.

Sometimes several plots need to be presented in the same curve so colors need to change, too. The end result should be a blue scatter plot with a blue line plot, then a red scatter plot with a red line plot, and so on.

I am trying to achieve this using a cycle multi list, and setting a list of colors and a list of markers as this:

 \documentclass[12pt]{article}

\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
cycle multi list={
red,blue,green\nextlist
solid\nextlist
mark=o,mark=none,mark=triangle,mark=none,mark=square,mark=none
},

samples=3,
legend entries={0,...,20},
legend pos=outer north east
]

\end{axis}
\end{tikzpicture}

\end{document}


The problem is that, using the [only marks] option, the marks lose all styling and the plot looks like this:

And, if I remove the option, the marks look as I expect them to, but then the "scatter" plots have lines, which is no good. Like this (the first line plot is moved down a bit so you can see it):

How can I make 2 look like this:

-
Replace \addplot with addplot+ (so that the option only marks is appended to the default options, instead of replacing them). – T. Verron Nov 28 '12 at 13:30

If you want to adjust some plot options, but keep the cycle list active, you have to add a + before the [...<options>...], so you'd write \addplot +[<options>] ...

 \documentclass[12pt]{article}

\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
cycle multi list={
red,blue,green\nextlist
solid\nextlist
mark=o,mark=none,mark=triangle,mark=none,mark=square,mark=none
},
samples=3,
legend entries={0,...,20},
legend pos=outer north east
]