MATLAB: How to hide the axes in front of 3D plots

3d waterfall axes

Hello,
I am doing a 3D plot and always have this annoying axes in front of my data (see image). How can I hide the front part of the axes? Just couldn't find it… Also I would be interested to change the spacing between the single graphs in the waterfall plot. Any idea?
Thank you!

Best Answer

Hi,
So to remove the annoying box :
box off
and for the spacing, it depends of the definition of your Z data. the more Z is meshed, the more waterfall will plot lines.
with the matlab example : f
igure
[X,Y,Z] = peaks(30);
waterfall(X,Y,Z)
figure
[X,Y,Z] = peaks(90);
waterfall(X,Y,Z)