This post is building from the post found here that has an elegant solution proposed by JMP.
I wanted to append just red markers to the existing plot so that the plot looks like:
In summary, I have two data sets, and they are currently the same values hence the appearance of the plot above. How can I get this same effect in pgfplots? Thanks.
Here is the code:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{filecontents}
\usepackage{graphicx}
\begin{filecontents*}{data.csv}
Iter y1 y2
1, -0.9317521, -0.9317521
2, 1.8946202, 1.8946202
3, 0, 0
4, 1.5797030, 1.5797030
5, -1.8814457, -1.8814457
6, 0, 0
7, 2.0373926, 2.0373926
8, 0, 0
9, 1.9972528, 1.9972528
10, 0, 0
\end{filecontents*}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ybar,bar width=1pt,xlabel={$Number~of~Recursions$},ylabel={Absolute Parameter Error}]
\addplot [mark=*,blue, fill=blue,mark options={scale=.65}]table[x index=0,y index=1,col sep=comma] {data.csv};
%\addplot [mark=*,red, fill=blue,mark options={scale=.35}]table[x index=0,y index=1,col sep=comma] {data.csv};
\addplot[blue,line width=1pt,sharp plot, update limits=false] coordinates {(0,0) (11,0)};
\end{axis}
\end{tikzpicture}
\end{document}


line width = 0ptbut I still see the black line. Thanks again! – Joe Mar 31 '16 at 08:07ycombto the\addplotand removed thefillfrom the first\addplotto achieve the desired result. – Stefan Pinnow Mar 31 '16 at 08:38