function p = getTimePlotOpts(p,h,varargin)
%GETTIMEPLOTOPTS Gets plot options of @timeplot h and assigns them to p 

%  Author(s): C. Buhr
%  Copyright 1986-2004 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:52:33 $

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

p.Normalize = h.AxesGrid.YNormalization;     
p.SettleTimeThreshold = h.Preferences.SettlingTimeThreshold;
p.RiseTimeLimits = h.Preferences.RiseTimeLimits;
          
if allflag
    p = getRespPlotOpts(p,h,allflag);
end