Plot tools based on audio
Project description
Converts a line graph to sound and returns an object that can be played in Jupyter notebook or Google Colab. It was created to make data science fun for the visually impaired.
Install
$ pip install audio-plot
Usage
y = np.sin(np.arange(0, np.pi*2, 0.1))
yy = np.array([y, -y]).T
plot(yy) # audio control will be appeared on notebook.
[The audio is as follows for this example]
tts > minimum value is -1.0
(Low sinusoidal sound)
tts > maximum value is 1.0
(High sinusoidal sound)
tts > line 1
(Sound in response to changes in the line 1 graph)
tts > line 2
(Sound in response to changes in the line 2 graph)
Update PyPI
$ nosetests -vs
$ pip install twine # if necessary
$ cat ~/.pypirc # if necessary
[distutils]
index-servers = pypi
[pypi]
repository: https://pypi.python.org/pypi
username: YOUR_USERNAME
password: YOUR_PASSWORD
$ python setup.py sdist
$ twine upload --repository pypi dist/*
$ pip --no-cache-dir install --upgrade audio-plot
Contributing
- Fork the repository on Github
- Create a named feature branch (like add_component_x)
- Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License
MIT
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
audio-plot-0.0.1.tar.gz
(3.2 kB
view details)
File details
Details for the file audio-plot-0.0.1.tar.gz
.
File metadata
- Download URL: audio-plot-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ccb6fa50ecb48746518b9e12adfa0ee174e450da41c13c4e5e2d6e821f40bbf |
|
MD5 | 9757f3f2a80e5904546042a6e5a7c928 |
|
BLAKE2b-256 | 701a5efdcae1a3990b63d5ef074ba9425756b702ccab62f01166d6b776aebe90 |