mwavepy.network.Network.plot_vs_frequency_generic

Network.plot_vs_frequency_generic(attribute, y_label=None, m=None, n=None, ax=None, show_legend=True, **kwargs)

plot a Network attribute vs frequency.

Parameters :

attribute : string

Network attribute to plot

y_label : string, optional

the y-axis label

m : int, optional

first index of s-parameter matrix, if None will use all

n : int, optional

secon index of the s-parameter matrix, if None will use all

ax : matplotlib.Axes object, optional

An existing Axes object to plot on

show_legend : Boolean

draw legend or not

**kwargs : keyword arguments

passed to matplotlib.plot()

Notes

All rectangular plotting commands (ie plot_s_db(), plot_s_deg()) call this function and just pass through **kwargs and *args

Examples

to plot the magnitude of the s-parameters one would use,

>>> myntwk.plot_vs_frequency_generic(attribute= 's_mag')

Previous topic

mwavepy.network.Network.plot_s_smith

Next topic

mwavepy.network.Network.read_touchstone

This Page