% vplotter - Arrow for doing variable length plots.
%
% vplotter :: options {
%    ylim    :: [[_]->nonneg] / [] ~'passed to ylim if not empty';
%    xlim    :: [[_]->nonneg] / [] ~'passed to xlim if not empty';
%    xlabel  :: [[_]->nonneg] / [] ~'passed to xlabel if not empty';
%    ylabel  :: [[_]->nonneg] / [] ~'passed to ylabel if not empty';
%    plotfn  :: plotfn / @plot     ~'function to create image';
%    args    :: {[_]}  / {}        ~'extra arguments for plotfn'
% } -> arrow({[[N,M]]}, {}, empty) ~'arrow from 2D arrays'.
%
% vplotter is an arrow which displays each input array as line plots
% using plot by default. The essential thing about plotter is that
% the graphics must be updated by setting the 'YData' property of
% the handle graphics object returned by the plotting function.

function o=vplotter(varargin)
	s.opts=prefs('ylim',[],'xlim',[],'plotfn',@plot,'args',{},varargin{:});
	o=class(s,'vplotter',agraph(1,s.opts));
end

