I'm using matlab2tikz to generate the tikz code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z.
Here is what I've got:

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{pgfplots}
\newlength\figureheight
\newlength\figurewidth
\begin{document}
\begin{figure}
\setlength\figureheight{6cm}
\setlength\figurewidth{6cm}
\begin{tikzpicture}
\begin{axis}[%
view={45}{-30},
width=\figurewidth,
height=\figureheight,
scale only axis,
xmin=0, xmax=10,
xlabel={x},
ymin=0, ymax=10,
ylabel={y},
zmin=0, zmax=10,
zlabel={z},
axis lines*=left]
\addplot3 [
color=red,
only marks,
mark=o,
mark options={solid}
]
coordinates{
(1,1,1)(2,2,2)(3,3,3)(4,4,4)(5,5,5)(6,6,6)(7,7,7)(8,8,8)(9,9,9)(10,10,10)
};
\end{axis}
\end{tikzpicture}%
\end{figure}
\end{document}
Is there exist a way to solve it?
\figurewidthand\figureheightthrow errors. Please add a minimal working example (MWE). If I remove those two lines, the plot is compilable. Although thepgfplots' style is very different to your image. – Qrrbrbirlbel Oct 23 '12 at 23:24pgfplotsdo you use? Hint:\listfiles– Qrrbrbirlbel Oct 24 '12 at 00:47\listfilesshows me that thepdfplotspackage is from 2010, I'm going to update it now. – Carlos Oct 24 '12 at 01:09