I am trying to plot 3D plots with pgfplots
. I have started with an example from documentation:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{pgfplots}
% \usepackage{3dplot}
\begin{document}
%
\begin{figure}[!h]
\begin{tikzpicture}
\begin{axis}
% this yields a 3x4 matrix:
\addplot3+[mesh] coordinates {
(0,0,0) (1,0,0) (2,0,0) (3,0,0)
(0,1,0) (1,1,0.6) (2,1,0.7) (3,1,0.5)
(0,2,0) (1,2,0.7) (2,2,0.8) (3,2,0.5)};
\end{axis}
\end{tikzpicture}
\end{figure}
%
\end{document}
When I look into the file .log I can read:
! Package pgfkeys Error: I do not know the key '/tikz/mesh' and I am going to ignore it.
Perhaps you misspelled it.
I have re-installed pgfplots package and the result is the same.
Best Answer
The example works well with the new version of
pgfplots
andtikz
.The newest version of tikz is available at sourceforge: