annotate 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 |
rev |
line source |
samer@0
|
1 % scatterer - Arrow for doing scatter plots.
|
samer@0
|
2 %
|
samer@0
|
3 % scatterer :: options {
|
samer@0
|
4 % xlim :: [[_]->nonneg] / [] ~'passed to xlim if not empty';
|
samer@0
|
5 % ylim :: [[_]->nonneg] / [] ~'passed to ylim if not empty';
|
samer@0
|
6 % xlabel :: [[_]->nonneg] / [] ~'passed to xlabel if not empty';
|
samer@0
|
7 % ylabel :: [[_]->nonneg] / [] ~'passed to ylabel if not empty';
|
samer@0
|
8 % args :: {[_]} / {} ~'extra arguments for scat'
|
samer@0
|
9 % } -> arrow({[[N,M]]}, {}, empty) ~'arrow from 2D arrays'.
|
samer@0
|
10 %
|
samer@0
|
11 % scatterer is an arrow which displays input on scatter (xy) plot.
|
samer@0
|
12
|
samer@0
|
13 function o=scatterer(varargin)
|
samer@0
|
14 s.opts=prefs('xlim',[],'ylim',[],'zlim',[],'scatfn',@scat,'args',{},varargin{:});
|
samer@0
|
15 o=class(s,'scatterer',agraph(1,s.opts));
|
samer@0
|
16 end
|
samer@0
|
17
|