dkpy.plot_mu
- dkpy.plot_mu(d_scale_info, ax=None, plot_kw=None, hide=None)
Plot mu.
- Parameters:
d_scale_fit_info (dkpy.IterResult) – Object containing information about the D-scale fit.
ax (Optional[plt.Axes]) – Matplotlib axes to use.
plot_kw (Optional[Dict[str, Any]]) – Keyword arguments for
plt.Axes.semilogx().hide (Optional[str]) – Set to
'mu_omega'or'mu_fit_omega'to hide either one of those lines.d_scale_info (IterResult)
- Returns:
Matplotlib
plt.Figureandplt.Axesobjects.- Return type:
Tuple[plt.Figure, plt.Axes]
Examples
Create a
IterResultobject from fit data and plotmu>>> P, n_y, n_u, K = example_skogestad2006_p325 >>> block_structure = [ ... dkpy.ComplexFullBlock(1, 1), ... dkpy.ComplexFullBlock(1, 1), ... dkpy.ComplexFullBlock(2, 2), ... ] >>> omega = np.logspace(-3, 3, 61) >>> N = P.lft(K) >>> N_omega = N(1j * omega) >>> mu_omega, D_l_omega, D_r_omega, info = dkpy.SsvLmiBisection().compute_ssv( ... N_omega, ... block_structure, ... ) >>> D_l, D_r_inv = dkpy.DScaleFitSlicot().fit(omega, D_l_omega, D_r_omega, 2, block_structure) >>> d_scale_fit_info = IterResult.create_from_fit( ... omega, ... mu_omega, ... D_l_omega, ... D_r_omega, ... P, ... K, ... D_l, ... D_r_inv, ... block_structure, ... ) >>> fig, ax = dkpy.plot_mu(d_scale_fit_info)