%% Change Color of Box Outline
% Create a scatter plot and display the box outline around the axes.

x = rand(10,1);
y = rand(10,1);
scatter(x,y)
box on

%
% Change the color of the box outline in the x-axis direction by setting the XColor property of the axes. Use dot notation to set properties.

ax = gca;
ax.XColor = 'red';

% Copyright 2015 The MathWorks, Inc.