Coherence

plot 03 cohere

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

rng = np.random.default_rng(2)
Fs = 1000.0
n = 1 << 14
base = rng.standard_normal(n)
x = base + 0.3 * rng.standard_normal(n)
y = base + 0.3 * rng.standard_normal(n)          # coherent through a shared source

fig, ax = plotpress.subplots()
ax.cohere(x, y, NFFT=512, Fs=Fs, noverlap=256, color="C2")
ax.set_title("cohere")

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

Gallery generated by Sphinx-Gallery