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 details)
Built Distribution
File details
Details for the file spectrum_plot-0.2.0.tar.gz
.
File metadata
- Download URL: spectrum_plot-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebaa7d5e128551771f0db0ef52c11ff8ffbf75bbdf89d8c0cef7b9e8cb4d5bc3 |
|
MD5 | f0e093200c1be715b1e4acad4be2662e |
|
BLAKE2b-256 | f1b94d656b6a7b955feacdc99ffd883e788b0c044f4667be36d177badabe481d |
File details
Details for the file spectrum_plot-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: spectrum_plot-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59cb2a77a3f11615b57998e97e905f3496c6c4b49625bec13bc123e1969726c3 |
|
MD5 | ea06196dfa38bf56ea2fd947be1c5a96 |
|
BLAKE2b-256 | d72065bf225e30f2c3cd966ed2176e7e61fec242f0c4e2ae59d59bb5f910e074 |