function this = mapCSTPrefs(this,varargin)
%MAPCSTPREFS Maps the CST or view prefs to the SigmaPlotOptions

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

if isempty(varargin)
    CSTPrefs = cstprefs.tbxprefs;
else
    CSTPrefs = varargin{1};
end

this = mapCSTPrefs2RespPlotOpts(this,CSTPrefs);
this = mapCSTPrefs2PlotOpts(this,CSTPrefs);

this.FreqUnits = CSTPrefs.FrequencyUnits; 
this.FreqScale = CSTPrefs.FrequencyScale; 
this.MagUnits = CSTPrefs.MagnitudeUnits; 
this.MagScale = CSTPrefs.MagnitudeScale; 

