%% Change Style of Box Outline
% First, plot a surface and display the box outline around the axes. By default, the outline appears around the back planes of the axes because the BoxStyle property of the axes is set to 'back'.

[X,Y,Z] = peaks;
surf(X,Y,Z)
box on

%
% Next, display the outline around the entire axes by setting the BoxStyle property to 'full'. Use dot notation to set properties.

ax = gca;
ax.BoxStyle = 'full';

% Copyright 2015 The MathWorks, Inc.