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.3.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file sliderplot-0.0.3.tar.gz
.
File metadata
- Download URL: sliderplot-0.0.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 652a9ce28941bf8aeaacf8b06ca7cd37627e08cb2ba867a0ad3e6e81b02ba4a0 |
|
MD5 | 42eef24972e83374f99e0e413f95e192 |
|
BLAKE2b-256 | 90504f247ed6eb6c12747cf9cd5ddb28c9cdb2487a41825134413ef44676d7d7 |
File details
Details for the file sliderplot-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: sliderplot-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 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 | f1318129f0187e7ed8ad15ef23986a0dc4ae76b29439e690c5ef0c2f7be93c59 |
|
MD5 | 1f02e57bfad96d01420fec95d10a332b |
|
BLAKE2b-256 | a3702333ce1dcd41a154bb0439f6ad161b9914d62d8af9d9670d020e7703bbf1 |