Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectrum_plot-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for spectrum_plot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ebaa7d5e128551771f0db0ef52c11ff8ffbf75bbdf89d8c0cef7b9e8cb4d5bc3
MD5 f0e093200c1be715b1e4acad4be2662e
BLAKE2b-256 f1b94d656b6a7b955feacdc99ffd883e788b0c044f4667be36d177badabe481d

See more details on using hashes here.

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

Hashes for spectrum_plot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59cb2a77a3f11615b57998e97e905f3496c6c4b49625bec13bc123e1969726c3
MD5 ea06196dfa38bf56ea2fd947be1c5a96
BLAKE2b-256 d72065bf225e30f2c3cd966ed2176e7e61fec242f0c4e2ae59d59bb5f910e074

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page