I am trying to make a 3D surface in pgfplots with input data. I am not able to get the expected graph. I would highly appreciate if you could point out to me what I am missing.
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage{filecontents}
\begin{filecontents*}{mydata.dat}
x y z
-1 -1 597.00
1 -1 649.00
-1 -1 597.00
1 -1 649.00
-1 1 1056.75
1 1 801.50
-1 1 1056.75
1 1 801.50
-1 -1 597.00
1 -1 649.00
-1 -1 597.00
1 -1 649.00
-1 1 1056.75
1 1 801.50
-1 1 1056.75
1 1 801.50
\end{filecontents*}
\begin{document}
\begin{tikzpicture}
\begin{axis}[]
\addplot3[surf, mesh] table{mydata.dat};
\end{axis}
\end{tikzpicture}
\end{document}
-1 -1 597is repeated4times; perhaps thexandyvalues should have changed? – cmhughes Jan 01 '13 at 21:13-0.5 -0.5 300etc. – cmhughes Jan 01 '13 at 21:39