I'm struggling with a 3D representation through the use of the package pgfplots. I'm faced with an alleged error in pgfplots (from my point of view). Consider the txt file (which is attached here) and the following code that uses it:
\documentclass[a4paper,11pt]{memoir}
\usepackage{pgfplots}
\pgfplotsset{/pgf/number format/use comma}
\begin{document}
\begin{tikzpicture}
\begin{axis} [view={45}{35},
xlabel=$\sigma_2$,
ylabel=$\sigma_1$,
zlabel={$\phi$},
%zmin=-6E-5,
%zmax=0,
grid=major,
colormap/blackwhite,
title={Grafico}]
\addplot3 [surf,z buffer=sort] file {grafico.txt};
\end{axis}
\end{tikzpicture}
\end{document}
Try to compile it as I wrote and look at the surface. Now try to uncomment the lines zmin =-6E-5 and zmax = 0, and recompile. As you can see the clip of the surface is made with respect to the outermost edge of the chart and not with respect to the plane z = 0, as it should be.
I also tried with the analytical formulation:
\documentclass[a4paper,11pt]{memoir}
\usepackage{pgfplots}
\pgfplotsset{/pgf/number format/use comma,compat=1.8}
\begin{document}
\begin{tikzpicture}
\begin{axis} [view={25}{35},
xlabel=$\sigma_1$,
ylabel=$\sigma_2$,
zlabel={$\varphi$},
% xmin=-.0025,
% xmax=.0025,
% ymin=-.01,
% ymax=.01,
zmin=-6E-5,
zmax=0,
grid=major,
colormap/blackwhite,
title={Grafico}]
\addplot3 [surf, shader=interp, z buffer=sort, samples=15, domain=-.0025:.0025, y domain=-.01:.01] {y^2-.9^2*(x-2.8E-3)^2+2*4.032E-3*(x-2.8E-3)};
\end{axis}
\end{tikzpicture}
\end{document}
But also this does not work. Do you know how to correct this error? Or, can you tell me where I'm wrong?

pgfplotsjust clips the 2d image - its 3d features are not fully developed. – Andrew Swann Jun 05 '13 at 10:24:)Note that you don't have to sign with your name since it automatically appears in the lower right corner of your post. – Claudio Fiandrino Jun 05 '13 at 10:31