by Doug Hull Movable, stretchable zoom box in parent axes controls axes limits in all children axes.
=expandaxis(perleft, perright, perdown, perup)
function =expandaxis(perleft, perright, perdown, perup)
%EXPANDAXIS Extends the current axis in any or all directions.
% EXPANDAXIS(left, right, down, up) Each of the direction will be expanded
% by the specified percent. For example if right were specified as 30 then
% the upper bound of the x-axis would be increased by 30% of the
% distance across the horizontal axis.
% If no argument is given, the routine will default to 10% in the
% unspecified directions.
% See also SHOWCIRC, SHOWRECT, SHOWVECT, SHOWX, SHOWY, TITLEBLOCK.
% Details are to be found in Mastering Mechanics I, Douglas W. Hull,
% Prentice Hall, 1998
% Douglas W. Hull, 1998
% Copyright (c) 1998-99 by Prentice Hall
% Version 1.00
% Douglas W. Hull, 2002
% Version 1.01 Removed errors from help text.
axis([newleft newright newbottom newtop]);