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

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

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

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

applyTimePlotOpts(p,this,true);