Mercurial > hg > ishara
view arrows/@agraph/agraph.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | beb8a3f4a345 |
children |
line wrap: on
line source
% agraph - Base arrow class for graphics in a Matlab figure % % agraph :: % N:natural ~'number of inputs', % options { % fig :: handle / gcf ~'figure for this instance'; % autoflush :: boolean/1 ~'unit will call drawnow after every iteration' % } % -> agraph(N) < arrow(_@typelist(N),{},_). % % METHODS % autoflush :: agraph(_) -> boolean. % fig :: agraph(_) -> handle. % % This class is no use instantiated directly. Should be subclassed. function o=agraph(nin,varargin) s.opts=options('fig',[],'name','','autoflush',0,varargin{:}); if isempty(s.opts.fig), warning('agraph requires figure'); end o=class(s,'agraph',arrow(nin,0)); end