# [Tex/LaTex] How to plot two lines in the same style (using cycle lists) with pgfplots

pgfplots

I am using cycle lists and the \addplot+ command to plot lines in different styles. I would like to plot several things using each style, however, like this:

% Plot using style 1

% Plot using style 2


How can I do this?

forget plot key is the usual way to do this but \addlegendentry{} does not choose which addplot command it comes after. You have to draw the to-be-legended(!?) plots consecutively at the beginning. So you can collate the plots such that you draw them 1-2-3,1-2-3, in terms of style as follows

\begin{tikzpicture}
\begin{axis}
% Plot using style 1