I have two surface plots, which I would like to have to same color for the same height. So, as the first plot is dark blue for f(x,y)=0, the right plot should also be dark blue for f(x,y)=0. However, the color dark blue is assigned to the lowest point of the plot. Thus, the color for f(x,y) in the right plot is a bright orange.
Sample source:
\documentclass{report}
\usepackage{pgfplots}
\begin{document}
% first plot
\begin{tikzpicture}
\begin{axis}[]
\addplot3[surf,colormap name=hot,domain=-2:2] {exp(-x^2-y^2)};
\end{axis}
\end{tikzpicture}
% second plot
\begin{tikzpicture}
\begin{axis}[]
\addplot3[surf,colormap name=hot,domain=-2:2] {exp(-x^2-y^2)-exp(-(x-1)^2-(y-1)^2)};
\end{axis}
\end{tikzpicture}
\end{document}

How can I force the plots to have the same color for the same height?

z=e^(-(x^2)-(y^2))orz=e^((-x)^2+(-y)^2)? – Jake Dec 22 '11 at 22:15z=e^((-x)^2+(-y)^2) = z=e^(x^2+y^2), so I do not understand your question. – Peter Dec 23 '11 at 08:49(-x)^2 = x^2, but that's not what I wrote. I said-(x^2). – Jake Dec 23 '11 at 12:50tikz.sty 2010/10/13 v2.10andpgfplots.sty 2011/07/29 v1.5– Jake Dec 23 '11 at 12:55