Mercurial > hg > ishara
comparison arrows/@plotter/plotter.m @ 37:beb8a3f4a345
Renamed prefs to options throughout.
author | samer |
---|---|
date | Mon, 28 Jan 2013 10:52:11 +0000 |
parents | 3f77126f7b5f |
children |
comparison
equal
deleted
inserted
replaced
36:9e7be347b3a0 | 37:beb8a3f4a345 |
---|---|
14 % using plot by default. The essential thing about plotter is that | 14 % using plot by default. The essential thing about plotter is that |
15 % the graphics must be updated by setting the 'YData' property of | 15 % the graphics must be updated by setting the 'YData' property of |
16 % the handle graphics object returned by the plotting function. | 16 % the handle graphics object returned by the plotting function. |
17 | 17 |
18 function o=plotter(varargin) | 18 function o=plotter(varargin) |
19 s.opts=prefs('dlim',[],'dom',[],'ylim',[],'xlim',[],'plotfn',@plot,'args',{},'transpose',0,varargin{:}); | 19 s.opts=options('dlim',[],'dom',[],'ylim',[],'xlim',[],'plotfn',@plot,'args',{},'transpose',0,varargin{:}); |
20 if isempty(s.opts.ylim), s.opts.ylim=s.opts.dlim; end | 20 if isempty(s.opts.ylim), s.opts.ylim=s.opts.dlim; end |
21 o=class(s,'plotter',agraph(1,s.opts)); | 21 o=class(s,'plotter',agraph(1,s.opts)); |
22 end | 22 end |
23 | 23 |