skrf.plotting.plot_minmax_bounds_component
- skrf.plotting.plot_minmax_bounds_component(self, attribute, m=0, n=0, *, type='shade', alpha=0.3, color_error=None, markevery_error=20, ax=None, ppf=None, kwargs_error=None, **kwargs)[source]
Plots mean value of the NetworkSet with minimum and maximum bounds in an Network’s attribute.
This is designed to represent min/max in a scalar component of the s-parameter. For example plotting the min/max in the magnitude would be expressed by
\[ \begin{align}\begin{aligned}min(|s|)\\mean(|s|)\\max(|s|)\end{aligned}\end{align} \]The order of mean and abs is important.
- Parameters:
attribute (str) – attribute of Network type to analyze
m (int) – first index of attribute matrix
n (int) – second index of attribute matrix
type (str) – [‘shade’ | ‘bar’], type of plot to draw
alpha (float) – passed to matplotlib.fill_between() command. [number, 0-1]
color_error (str) – color of the min/max fill shading. Default is None.
markevery_error (float) – tbd
type – if type==’bar’, this controls frequency of error bars
ax (matplotlib axes object) – Axes to plot on. Default is None.
ppf (function) –
- post processing function. a function applied to the
upper and lower bounds. Default is None
- kwargs_errordict
dictionary of kwargs to pass to the fill_between or errorbar plot command depending on value of type.
**kwargs – passed to Network.plot_s_re command used to plot mean response
self (NetworkSet)
kwargs_error (dict)
Note
For phase uncertainty you probably want s_deg_unwrap, or similar. Uncertainty for wrapped phase blows up at +-pi.