Mercurial > hg > ishara
comparison arrows/@plotter/plotter.m @ 3:3f77126f7b5f
First major revision of sequence library, now using classdef form, STILL A BIT BROKEN!
author | samer |
---|---|
date | Wed, 09 Jan 2013 22:22:21 +0000 |
parents | 672052bd81f8 |
children | beb8a3f4a345 |
comparison
equal
deleted
inserted
replaced
2:7357e1dc2ad6 | 3:3f77126f7b5f |
---|---|
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',{},'tranpose',0,varargin{:}); | 19 s.opts=prefs('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 |