function p = getNyquistPlotOpts(p,h,varargin)
%GETNYQUISTPLOTOPTS Gets plot options of @nyquistplot 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:06 $

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


p.FreqUnits = h.FrequencyUnits;
p.MagUnits = h.MagnitudeUnits;
p.PhaseUnits = h.PhaseUnits;
p.ShowFullContour = h.ShowFullContour;



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