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

Initial partial import.
author samer
date Wed, 19 Dec 2012 22:38:28 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arrows/@ainfig/construct.m	Wed Dec 19 22:38:28 2012 +0000
@@ -0,0 +1,18 @@
+function u=construct(s,sizes_in)
+	figure(fig(s));
+	if ~isempty(s.opts.colormap), colormap(s.opts.colormap); end
+	%if isempty(s.opts.xlim) && numel(dom)>1, s.opts.xlim=[dom(1),dom(end)]; end
+	%if ~isempty(s.opts.ylim), ylim(s.opts.ylim); end
+	%if ~isempty(s.opts.xlim), xlim(s.opts.xlim); end
+	%if isfield(s.opts,'ylabel'), ylabel(s.opts.ylabel); end
+	%if isfield(s.opts,'xlabel'), xlabel(s.opts.xlabel); end
+
+	u=mkunit(s);
+	u.sizes_out = {};
+	if autoflush(s), u.process =@proc_flush;
+	else u.process=@proc_noflush; end
+	u.dispose = @()clf(fig(s));
+
+	function proc_flush(x), figure(fig(s)); s.fn(x); drawnow; end
+	function proc_noflush(x), figure(fig(s)); s.fn(x); end
+end