How to change to dotted style

How to change the line style to line style with different line style such that people need not to have a color printer to view it?

\pgfplotsset{mystyle/.style={mark=none}}
\begin{tikzpicture}
\begin{axis}[title=Anti-correlated Dataset,
legend pos=outer north east,
ytick={0,0.2,...,1},
legend pos=outer north east,
legend style={draw=none},
xtick={0,50,...,300},
scaled ticks=false,
log ticks with fixed point={1000 sep=},
axis x line=bottom,
axis y line=left,
axis line style=-,
minor tick style={draw=none},
ylabel = Fitness,
xlabel = Number of Generation,
every axis legend/.append style={xshift=-10pt}
] %manman
\legend{$\GA$,$\DROO$,$\DROSkyline$}
\end{axis}
\end{tikzpicture}

-
Add \pgfplotsset{mystyle/.style={mark=none,dashed}} or dotted. –  percusse Nov 27 '12 at 10:23
But there are all dashed, I need someway(from shape) to differentiate them so that can view on black white paper. –  william007 Nov 27 '12 at 10:27
You can then add them individually or directly use Jake's answer. –  percusse Nov 27 '12 at 10:29
@william007: Please make sure that your examples are minimal: You don't need to include such a big dataset to explain your problem. Also, code examples should be complete, that is they should start from \documentclass and include all necessary definitions (\GA is undefined in your example). –  Jake Nov 27 '12 at 10:47

You can set cycle list name=linestyles, which will plot the first plot using a solid line, the second one using a dashed line, and the third one using a dotted line.

If you want both colour and different dash patterns, you can either supply the desired options to the individual \addplot options, or you can define your own cycle list, using something like

cycle list={
black,thick,densely dotted\\
blue,densely dashed\\
red,solid\\
}


Code for first example:

\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}

\begin{document}
\pgfplotsset{mystyle/.style={mark=none}}
\begin{tikzpicture}
\begin{axis}[title=Anti-correlated Dataset,
legend pos=outer north east,
ytick={0,0.2,...,1},
legend pos=outer north east,
legend style={draw=none},
xtick={0,50,...,300},
scaled ticks=false,
log ticks with fixed point={1000 sep=},
axis x line=bottom,
axis y line=left,
axis line style=-,
minor tick style={draw=none},
ylabel = Fitness,
xlabel = Number of Generation,
cycle list name=linestyles,
every axis legend/.append style={xshift=-10pt}
] %manman
\end{axis}
\end{tikzpicture}
\end{document}


Code for second example:

\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7} % *EDIT*: this improves scale uniformly.

\begin{document}
\pgfplotsset{mystyle/.style={mark=none}}
\begin{tikzpicture}
\begin{axis}[title=Anti-correlated Dataset,
legend pos=outer north east,
ytick={0,0.2,...,1},
legend pos=outer north east,
legend style={draw=none},
xtick={0,50,...,300},
scaled ticks=false,
log ticks with fixed point={1000 sep=},
axis x line=bottom,
axis y line=left,
axis line style=-,
minor tick style={draw=none},
ylabel = Fitness,
xlabel = Number of Generation,
cycle list={
black,thick,densely dotted\\
blue,densely dashed\\
red,solid\\
},
every axis legend/.append style={xshift=-10pt}
] %manman