function draw(this,Data,NormalRefresh)
%DRAW  Draws Bode response curves.
%
%  DRAW(VIEW,DATA) maps the response data in DATA to the curves in VIEW.

%  Author(s):  
%  Copyright 1986-2002 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:45:49 $

AxGrid = this.AxesGrid;

% Input and output sizes
[Ny, Nu] = size(this.Curves);

% Draw points
for row=1:Ny
    for col=1:Nu
       % REVISIT: remove conversion to double (UDD bug where XOR mode ignored)
       set(double(this.Curves(row,col)), 'XData', Data.XData(:,col), ...
           'YData', Data.YData(:,row),'Marker','x','Linestyle','None');        
    end
end

%% Draw selected points
if ~isempty(this.SelectedPoints)
    for row=1:Ny
        for col=1:Nu
            I = this.SelectedPoints(row,col,:);
            xdata = Data.XData(this.SelectedPoints(row,col,:),col);
            ydata = Data.YData(this.SelectedPoints(row,col,:),row);
            set(double(this.SelectionCurves(row,col)), 'XData',xdata, ...
               'YData',ydata,'Marker','o','Linestyle','None'); 
        end
    end
else 
   for ct = 1:Ny*Nu 
       set(this.SelectionCurves(ct),'ydata',[],'xdata',[])
   end
end