skrf.networkSet.NetworkSet.plot_violin
- NetworkSet.plot_violin(attribute, *args, **kwargs)[source]
Plots the violin plot of the network set for the desired attribute.
A violin plot provides the distribution of the attribute at each frequency point, and optionally the extrema, mean, and median. The plot becomes cluttered quickly with many frequencies, so reducing the number with
NetworkSet.interpolate_frequency()is recommended.- Parameters:
attribute (str) – attribute of Network type to analyze
m (int) – first index of attribute matrix
n (int) – second index of attribute matrix
widths (float) – The maximum width of each violin in units of the positions axis. The default is 0.75 of the distance between the first two frequencies.
showmeans (bool) – Whether to show the mean with a line.
showextrema (bool) – Whether to show the extrema with a line.
showmedians (bool) – Whether to show the median with a line.
quantiles (ArrayLike) – If not None, set a list of floats in interval [0, 1] for each violin, which stands for the quantiles that will be rendered for that violin.
points (int) – The number of points to evaluate each of the gaussian kernel density estimations at.
bw_method ({'scott', 'silverman'} or float or callable, default: 'scott') – _description_. Defaults to None.
ax (matplotlib axes object) – Axes to plot on. Default is None.
**kwargs – passed to
matplotlib.pyplot.violinplot()
Note
For phase plots you probably want s_deg_unwrap, or similar. Uncertainty for wrapped phase blows up at +-pi.