function r = plot(this,hsv,varargin)
%PLOT  Adds data to a response plot.
%
%   R = PLOT(HSVPLOT,HSV) adds the Hankel singular value data HSV
%   to the pole/zero plot HSVPLOT.  The response is drawn immediately.
%
%   R = PLOT(HSVPLOT,HSV,'nodraw') defers drawing.  An explicit 
%   call to DRAW is then required to show the new response.  This 
%   option is useful to render multiple responses all at once.

%  Author(s): P. Gahinet
%  Copyright 1986-2004 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:53:05 $
ni = nargin;
error(nargchk(2,3,ni))

% Check data
if ~isvector(hsv) || ~isreal(hsv) || any(hsv<0)
   error('Invalid Hankel singular value data.')
end
hsv = hsv(:);

% Create new response
try
   r = this.addresponse;
catch
   rethrow(lasterror)
end

% Store data and set properties
r.Data.HSV = hsv;

% Draw new response
if ni<3
   draw(r)
end