function applyRespPlotOpts(this,h,varargin)
%APPLYRESPPLOTOPTS  set respplot properties

%  Copyright 1986-2004 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $   $Date: 2004/12/26 21:52:22 $

if isempty(varargin) 
    allflag = false;
else
    allflag = varargin{1};
end

% Apply IO Grouping settings
h.IOGrouping = this.IOGrouping;

% Apply Column Label Style settings
InputLabelStyle = h.AxesGrid.ColumnLabelStyle;
InputLabelStyle.FontSize = this.InputLabels.FontSize;
InputLabelStyle.FontWeight = this.InputLabels.FontWeight';
InputLabelStyle.FontAngle = this.InputLabels.FontAngle;
InputLabelStyle.Color = this.InputLabels.Color;

% Apply Row Label Style settings
OutputLabelStyle = h.AxesGrid.RowLabelStyle;
OutputLabelStyle.FontSize = this.OutputLabels.FontSize;
OutputLabelStyle.FontWeight = this.OutputLabels.FontWeight';
OutputLabelStyle.FontAngle = this.OutputLabels.FontAngle;
OutputLabelStyle.Color = this.OutputLabels.Color;

% Apply IO Visiiblity settings
if all(size(h.InputVisible) == size(this.InputVisible)) 
    h.InputVisible = this.InputVisible;
else
    if length(this.InputVisible) == 1
        h.InputVisible(:) = this.InputVisible;
    else
        warning('Input Visibility settings ignored')
    end
end

if all(size(h.OutputVisible) == size(this.OutputVisible))
    h.OutputVisible = this.OutputVisible;
else
    if length(this.OutputVisible) == 1
        numi = length(h.OutputVisible);
        h.OutputVisible(:) = this.OutputVisible;
    else
        warning('Output Visibility settings ignored')
    end
end


% Call superclass method if allflag is true
if allflag
   applyPlotOpts(this,h);
end


      

             
