Engineering and signals
Transfer functions and frequency response
import numpy as np
import plotora as pt
# Continuous-time H(s) = 1/(0.01s + 1)
g = pt.bode(num=[1], den=[0.01, 1], unit="rad/s", w=np.logspace(0,4,500))
g.save("bode.pdf").show()
pt.bode_asymptotic([1], [0.01,1]).show()
print(pt.corner_frequencies([1], [0.01,1]))

Coefficients are in descending powers of s. w uses the selected unit, Hz or rad/s; bode returns two axes and a data dictionary with frequency, magnitude_db and phase_deg. Corner frequencies are pole/zero magnitudes, not automatically -3 dB bandwidth. Asymptotes are approximations. Nyquist is a sampled response and does not implement the full indented contour for imaginary-axis poles. Root locus tracks sampled roots; inspect branches near crossings. Margins and bandwidth require optional control and have not been validated here.
pt.poles_zeros(poles=[-10, -40], zeros=[0]).show()
pt.step_response([1], [0.01,1]).show()
pt.phasors({"A": 1+1j, "B": 2-1j}).show()
Signal processing
t = np.arange(1000) / 1000
v = 2*np.sin(2*np.pi*50*t)
g = pt.fft(t, v)
print(g.metadata["frequency"][np.argmax(g.metadata["amplitude"])])
g.show()

FFT and spectrogram require uniformly spaced samples. For nonuniform transient results, explicitly call t_uniform, y_uniform = pt.resample(t, y, samples=2000) and evaluate whether interpolation and sample rate are appropriate. FFT uses a one-sided amplitude spectrum; a window changes leakage and resolution. harmonics fits specified harmonic frequencies by least squares. phase_difference(t,y1,y2,frequency) reports phase of y2 minus y1 in degrees.
metrics and ripple require real finite samples and strictly increasing time; use a steady-state window when appropriate. Results depend on the original sampling and interpolation assumptions.