I need to add an extra tick to the x-axis without adding a new grid line at the new x value, the problem is that I'm using extra ticks to get a complete grid (it is one solution that was given to me in this post) wich lines start and end at integer boundaries of the x and y-axis.
\documentclass[border=3mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=center,
grid=major,
grid style={dotted, cyan},
anchor=origin,
xlabel = $x$, ylabel =$y$, % Set the labels
xmin= -4, xmax= 4,
ymin=-4, ymax=4,
xtick={-3,-2,...,3},
ytick={-3,-2,...,3},
extra x ticks={-4,3.14, 4},
extra y ticks={-4, 4},
extra tick style={grid=major, grid style={dotted, cyan}},
extra x tick labels={,\hspace{.4em}$\pi$,},
extra y tick labels={},
color=cyan
]
\end{axis}
\end{tikzpicture}
\end{document}