I would like to draw a 2D, colored plot of a function above its surface plot.
I tried copying the surface plot and setting z filter/.code={\def\pgfmathresult{1.4}}, but then everything is the same color on the 2D plot.
Also, I'd be glad if I could avoid the antialiasing artifacts on the 2D plot (each quad is made of two triangles, and there is a small white line between them).

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{pgfplots}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[grid=both]
\addplot3[
surf,
shader=faceted interp,
samples=10,
] {sin(deg(x))*sin(deg(y))};
\addplot3[
surf,
shader=faceted interp,
samples=10,
z filter/.code={\def\pgfmathresult{1.4}}
] {sin(deg(x))*sin(deg(y))};
\end{axis}
\end{tikzpicture}
\end{document}

shader=faceted interp. It has been fixed in the meantime; an upgrade to the current stable version will eliminate it. – Christian Feuersänger Feb 11 '13 at 07:01\usepgfplotslibrary{patchplots}and add the two optionspatch type=bicubic, patch type sampling,to your surface plot. This will cause a much smoother surface. Works only with plot-by-expression, though. – Christian Feuersänger Feb 11 '13 at 07:10