%% Revert Back to Default Data Aspect Ratio
% Create a 3-D scatter chart of random data and set the data aspect ratio. Then revert back to the default data aspect ratio.

X = rand(100,1);
Y = rand(100,1);
Z = rand(100,1);
scatter3(X,Y,Z)
daspect([3 2 1])

%

daspect auto

% Copyright 2012 The MathWorks, Inc.