comparison arrows/@ainfig/construct.m @ 0:672052bd81f8

Initial partial import.
author samer
date Wed, 19 Dec 2012 22:38:28 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:672052bd81f8
1 function u=construct(s,sizes_in)
2 figure(fig(s));
3 if ~isempty(s.opts.colormap), colormap(s.opts.colormap); end
4 %if isempty(s.opts.xlim) && numel(dom)>1, s.opts.xlim=[dom(1),dom(end)]; end
5 %if ~isempty(s.opts.ylim), ylim(s.opts.ylim); end
6 %if ~isempty(s.opts.xlim), xlim(s.opts.xlim); end
7 %if isfield(s.opts,'ylabel'), ylabel(s.opts.ylabel); end
8 %if isfield(s.opts,'xlabel'), xlabel(s.opts.xlabel); end
9
10 u=mkunit(s);
11 u.sizes_out = {};
12 if autoflush(s), u.process =@proc_flush;
13 else u.process=@proc_noflush; end
14 u.dispose = @()clf(fig(s));
15
16 function proc_flush(x), figure(fig(s)); s.fn(x); drawnow; end
17 function proc_noflush(x), figure(fig(s)); s.fn(x); end
18 end