function setoptions(this,varargin)
%SETOPTIONS  set bodeplot properties

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

if ~isempty(varargin)
    if ~isa(varargin{1},'plotopts.BodePlotOptions')
        p = plotopts.BodePlotOptions;
        p = p.getBodePlotOpts(this,true);
    else
        p = varargin{1};
        varargin(1) = [];
    end
end

p = applyPropertyPairs(p, varargin{:});

applyBodePlotOpts(p,this,true);