function xyresp(src, r)
%XYRESP  Updates @xydata objects.
%  Author(s):  
%  Copyright 1986-2002 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:43:39 $
    
   
%% Look for visible+cleared responses in response array
if isempty(r.Data.Xdata) && strcmp(r.View.Visible,'on')

  % Nan out masked columns
  
  %% TO DO: Allow X axes to have different foci
  % Update the data with the xy plot
  set(r.Data,'XData',src.Timeseries.Data,'YData',src.Timeseries2.Data);
%   nonnandata = src.Timeseries.Data(~isnan(src.Timeseries.Data));
%   if ~isempty(nonnandata)
%       r.Data.Focus = [min(nonnandata) max(nonnandata)];
%   else
%       r.Data.Focus = [0 1];
%   end
end
