function p = getoptions(this,varargin)
%GETOPTIONS  Get plot options from a time plot
%
%  P = GETOPTIONS(H) returns the plot options P for a Sigma plot with 
%  handle H. See LSIMPLOT, STEPPLOT, INITIALPLOT, IMPULSEPLOT for details 
%  on obtaining H. 
%
%  P = GETOPTIONS(H,PropertyName) returns the specified options property, 
%  for the bode plot with handle H. 
% 
%  See also LSIMPLOT, STEPPLOT, INITIALPLOT, IMPULSEPLOT, TIMEOPTIONS, 
%  SETOPTIONS.

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

if length(varargin)>1
    error(sprintf('Invalid syntax.'))
end

p = plotopts.TimePlotOptions;
p = p.getTimePlotOpts(this,true);

if ~isempty(varargin)
    try
        p = p.(varargin{1});
    catch
        error(sprintf('Invalid property name.'))
    end
end