function xfocus = getfocus(this)
%GETFOCUS  Computes optimal X limits for wave plot 
%          by merging Focus of individual waveforms.

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

xfocus = [0 1];
for k=1:length(this.Responses)
    if this.Responses(k).isvisible
        xfocus = [min([this.Responses(k).Data.Lags(:); xfocus(1)]) ...
            max([this.Responses(k).Data.Lags(:); xfocus(2)])];
    end
end

