view arrows/@scatterer/scatterer.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 672052bd81f8
children beb8a3f4a345
line wrap: on
line source
% scatterer - Arrow for doing scatter plots.
%
% scatterer :: options {
%    xlim    :: [[_]->nonneg] / [] ~'passed to xlim if not empty';
%    ylim    :: [[_]->nonneg] / [] ~'passed to ylim if not empty';
%    xlabel  :: [[_]->nonneg] / [] ~'passed to xlabel if not empty';
%    ylabel  :: [[_]->nonneg] / [] ~'passed to ylabel if not empty';
%    args    :: {[_]}  / {}        ~'extra arguments for scat'
% } -> arrow({[[N,M]]}, {}, empty) ~'arrow from 2D arrays'.
%
% scatterer is an arrow which displays input on scatter (xy) plot.

function o=scatterer(varargin)
	s.opts=prefs('xlim',[],'ylim',[],'zlim',[],'scatfn',@scat,'args',{},varargin{:});
	o=class(s,'scatterer',agraph(1,s.opts));
end