function p = getSigmaPlotOpts(p,h,varargin)
%GETSIGMAPLOTOPTS Gets plot options of @sigmaplot 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:28 $

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


p.FreqUnits = h.AxesGrid.XUnits;
p.FreqScale = h.AxesGrid.XScale;
p.MagUnits = h.AxesGrid.YUnits;
p.MagScale = h.AxesGrid.YScale;


if allflag
    p = getRespPlotOpts(p,h,allflag);
end