\documentclass[a4paper]{article}

\usepackage{pgfplots}

\pgfplotsset{compat=1.6}

\begin{document}

This test checks that paths after addplot are applied once and only once. This has changed for 1.9

	\begin{tikzpicture}
	%\tracingmacros=2 \tracingcommands=2
		\begin{axis}[
		]
		\addplot+[samples=2,ultra thick] {x} node[pos=0.5,pin=PIN] {};	
		\addplot+[only marks] coordinates {(2,-2) (4,-2)} node[pos=0.5,pin=PIN2] {};	
		\end{axis}
	\end{tikzpicture}

\end{document}


