A handful of freqeuntly used plots when working with discrete systems or digital signal processing in Python. Z-Plane is built upon the scipy.signal module, using the TransferFunction
class to pass all required system information to plot functions in a single object. This allows all plots to be executed in a single line of code, while Z-Plane handles the calculations and setup required to get the perfect plot.
The following functions are available:
freq
: Normalized frequency responsepz
: Pole-Zero plotbode
: Bode plot (Gain and Phase), non logarithmic frequency axis possibleimpulse
: Impulse responsenorm
: Normalize transfer functionfir2tf
: Get FIR transfer function from impulse response
pip install zplane
- Import
zplane
- Call any of the available functions, and pass a valid scipy.signal TransferFunction
Have a look at the examples for a quick demonstration on how to use the functions. Please look up the TransferFunction
documentation, if you are unsure how to create a valid instance of a TransferFunction
.