Phase spectrum

plot 08 phase spectrum

Live figure — pick a tool, then zoom, pan, point-pick or annotate. Nothing is active until a tool is selected.

View this figure’s Vega export ↗ — the raw JSON spec, rendered live by a real Vega engine.

View this figure’s Vega-Lite export ↗ — the raw JSON spec(s), rendered live by a real Vega-Lite engine.

import numpy as np
import plotpress

Fs = 1000.0
t = np.arange(0, 1, 1 / Fs)
x = np.sin(2 * np.pi * 50 * t + 0.6) + 0.5 * np.sin(2 * np.pi * 120 * t)

fig, ax = plotpress.subplots()
ax.phase_spectrum(x, Fs=Fs, color="C3")
ax.set_title("phase_spectrum (unwrapped)")

Total running time of the script: (0 minutes 0.062 seconds)

Gallery generated by Sphinx-Gallery