%% Custom Passivity Index Plot Settings Independent of Preferences
% For this example, create a passivity index plot that uses 15-point red text for the title. This plot looks the same in any MATLAB® session, regardless of the preferences of the one in which it is generated.
% First, create a default options set using sectorplotoptions.

plotoptions = sectorplotoptions;

% 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 passivity index plot using the options set plotoptions.

G = tf(1,[1 1]);
passiveplot(G,plotoptions)

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