Metadata-Version: 2.1
Name: spectrum-plot
Version: 0.2.0
Summary: Interactive spectrum plot. Update FFT plot on every new sampled data
Home-page: https://github.com/lisrael1/spectrum_plot
Author: Lior Israeli
Author-email: israelilior@gmail.com
Project-URL: Bug Tracker, https://github.com/lisrael1/spectrum_plot/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: matplotlib
Requires-Dist: freq-note-converter

## spectrum plot

### plotting FFT of 1D data, with live plot update

usage example:
```python
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)
```
![](https://github.com/lisrael1/spectrum_plot/blob/main/src/spectrum_plot_examples/animated_fft.gif?raw=True)

In the examples folder, you can locate a code that includes the addition of music notes at the graph.
![](https://github.com/lisrael1/spectrum_plot/blob/main/src/spectrum_plot_examples/spectrom_with_notes.png?raw=True)
