# Using continuous curve without points

is it possible to use a curve without specific point to represent the data, the reason is that the data has too many points to display correctly. This is what I have (It looks all messed up) This is the kind of curve I wish to have

Here is the latex code x-axis(1-400) increased increased, y-axis converged to a value.

Here is the code with data

\documentclass[9pt]{article}
% GRAPHICS
\usepackage{pgf}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{arrows,automata,positioning}
\begin{document}
\pgfplotsset{
xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
every axis/.append style={
font=\sffamily,
width=6.5cm,
height=4.9cm
}
}

\begin{tikzpicture}[font=\sffamily]
\begin{axis}[title=\textbf{QWS Dataset},
legend pos=outer north east,
ytick={0,0.2,...,1},
legend pos=outer north east,
legend style={draw=none},
xtick={0,200,...,1000},
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 = Optimality (\%),
xlabel = Number of Generation
]
\legend{a,b,c,d}
\end{axis}
\end{tikzpicture}

\end{document}

-
you can say \addplot[color] and it will only draw the lines no markers. You will need to specify the color for each curve. You can also say \addplot[mark=none] but that will make all curves black. – mythealias Nov 24 '12 at 20:57
You can add the option no markers to the axis environment. – clemens Nov 24 '12 at 21:28

You can use mark=none; personally I would create a style for this

\pgfplotsset{mystyle/.style={mark=none}}


which can be used as

\addplot[mystyle]....


or, if you wish to inherit the existing styles, or otherwise-created cycle list, then you can use

\addplot+[mystyle]....


In the code below, I have used \addplot+

\documentclass{article}
\usepackage{pgfplots}

\pgfplotsset{compat=1.7}
\pgfplotsset{
xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
every axis/.append style={
font=\sffamily,
title style={font=\bfseries\sffamily},
width=6.5cm,
height=4.9cm
}
}

\pgfplotsset{mystyle/.style={mark=none}}

\begin{document}

\begin{tikzpicture}
\begin{axis}[title=QWS Dataset,
legend pos=outer north east,
ytick={0,0.2,...,1},
legend pos=outer north east,
legend style={draw=none},
xtick={0,200,...,1000},
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 = Optimality (\%),
xlabel = Number of Generation
]

\legend{a,b,c,d}
\end{axis}
\end{tikzpicture}

\end{document}


If you want to create your own cycle list then you can use something like the following

\pgfplotscreateplotcyclelist{mycyclelist}{%
color=red,mark=none,line width=1pt,\\%
color=blue,mark=none,line width=2pt,\\%
color=gray,mark=none,line width=3pt,\\%
color=purple,dashed,mark=none,line width=1pt,\\%
}

\pgfplotsset{
xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
every axis/.append style={
font=\sffamily,
title style={font=\bfseries\sffamily},
width=6.5cm,
height=4.9cm,
cycle list name=mycyclelist,
}
}


Whenever you use \addplot+[mystyle]... it will inherit the styles that you have specified in order from the cycle list; so the first line will be red, the second will be blue, the third will be gray, the fourth will be purple, (and dashed) and the fifth will go back to red.

Note that using \addplot[mystyle]... (without the +) will ignore the cycle list.

-