You have either of the following two as an option:
\begin{axis}
\begin{pgfplotsinterruptdatabb}
\addplot[forget plot] coordinates {(-16000,3.14) (16000,3.14)};
\end{pgfplotsinterruptdatabb}
\end{axis}
or
\begin{axis}
\addplot[forget plot,update limits=false] coordinates {(-16000,3.14) (16000,3.14)};
\end{axis}
The first I would prefer. You can then easily do:
\newcommand\addplotpi[1][]{
\begin{pgfplotsinterruptdatabb}
\addplot[forget plot,#1] coordinates {(-16000,3.14) (16000,3.14)};
\end{pgfplotsinterruptdatabb}
}
and simply use that in every axis environment you wish to utilize it in.
The forget plot allows you to add it in the beginning of an axis environment without disturbing the color-lists and legends.
The only thing you should worry about is the lower and upper limit of x. But just do it large enough so that it wont bother you! :)
addplotcommand as you are currently doing. Just addenlargelimits=falseas an option to youraxisenvironments. – Roelof Spijker Feb 7 '12 at 15:39\addplot expression[domain=-10:10]{pi};` – cmhughes Feb 7 '12 at 16:40