Interactive spectrum plot. Update FFT plot on every new sampled data
Project description
spectrum plot
plotting FFT of 1D data, with live plot update
usage example:
import numpy as np
from spectrum_plot import create_fft_plot
plot = create_fft_plot()
n = 200
seconds = 0.1
t = np.linspace(0, seconds, n)
nyquist = n / seconds / 2
for freq in np.linspace(100, nyquist, 100):
sine = np.sin(2 * np.pi * t * freq)
plot.update_raw_data(sine, seconds=seconds)
In the examples folder, you can locate a code that includes the addition of music notes at the graph.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spectrum_plot-0.2.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for spectrum_plot-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59cb2a77a3f11615b57998e97e905f3496c6c4b49625bec13bc123e1969726c3 |
|
MD5 | ea06196dfa38bf56ea2fd947be1c5a96 |
|
BLAKE2b-256 | d72065bf225e30f2c3cd966ed2176e7e61fec242f0c4e2ae59d59bb5f910e074 |