from
Area Navigator
by Eric Ludlam
interactive area plot
|
| lazylim(ax, limprop, value) |
function lazylim(ax, limprop, value)
% LAZYLIM(AX, LIMPROP, VALUE)
%
% Make the setting of the axes AX property LIMPROP be lazy, or
% slow. The VALUE is the destination value.
%
% This works with a timer, so that useres can continue interacting
% with a plot, and possibly redirect an in progress animation.
if nargin ~= 3
error('Not enough arguments for lazylim.'); %#ok
end
if ~ishandle(ax) && strcmp(get(ax,'type'),'axes')
error('First argument must be an axes handle.'); %#ok
end
if ~ischar(limprop)
error('Second argument must be a string/Property name for axes'); %#ok
end
cl = get(ax,limprop);
nv = [ cl(1) value ];
swooshprop(ax, limprop, nv);
|
|
Contact us at files@mathworks.com