Turn a function into an interactive plot with a single line of code
Project description
sliderplot
Turn a function into an interactive plot with a single line of code.
def f(amplitude=1, frequency=np.pi, phase=np.pi / 2):
x = np.linspace(0, 10, 1000)
y = amplitude * np.sin(frequency * x + phase)
return x, y
sliderplot(f, params_bounds=((0, 10), (0, 10 * np.pi), (0, 2 * np.pi)), show=True)
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
sliderplot-0.0.1.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file sliderplot-0.0.1.tar.gz
.
File metadata
- Download URL: sliderplot-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5953b8b5c16f2026057a3a0ac21843e4007c6309942d4b7360a9373b57de9538 |
|
MD5 | 23ba1a099bffd23d01ce2757aaa3085d |
|
BLAKE2b-256 | a0241e8dc951aa8a63c9c4f6e9b825a28e7b5d643f27c81352ec794ea40b880a |
File details
Details for the file sliderplot-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sliderplot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb0d6171c7ed956457dd99d8162ee07fdd39f0ca89555f8ede02b6b365c60ed |
|
MD5 | 06bc61326142827819e1dedead1f1105 |
|
BLAKE2b-256 | 3825fbef25aa84cda6329bc5fd6c0bc398e84301919945f90461418e38d270b9 |