%% Custom Sigma Plot Settings Independent of Preferences
% For this example, create a sigma plot that uses 15-point red text for the title. This plot should look the same, regardless of the preferences of the MATLAB session in which it is generated.
% First, create a default options set using sigmaoptions.

plotoptions = sigmaoptions;

% Next, change the required properties of the options set plotoptions.

plotoptions.Title.FontSize = 15;
plotoptions.Title.Color = [1 0 0];
plotoptions.FreqUnits = 'Hz';
plotoptions.Grid = 'on';

% Now, create a sigma plot using the options set plotoptions.

h = sigmaplot(tf(1,[1,1]),plotoptions);

% Because plotoptions begins with a fixed set of options, the plot result is independent of the toolbox preferences of the MATLAB session.
% Copyright 2021 The MathWorks, Inc.