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.
It is like a DynamicMap but with multiple lines and plots capabilities.
Demo
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)
Features
Single line
TODO
Multiple lines
TODO
Multiple subplots
TODO
Default slider position
TODO
Slider bounds settings
TODO
Plot edition
TODO
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.4.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file sliderplot-0.0.4.tar.gz
.
File metadata
- Download URL: sliderplot-0.0.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 682306b2e407d0e0aead0c524a06c11224bdb06ea309dd01e9bf5096f17e3ec0 |
|
MD5 | 9dc2a92faee5e6b706661ad202e655ae |
|
BLAKE2b-256 | f517fb74ac20b895ea5c8fb1877c2cff3ef84422a7695b2b0fb0f7db1f0cf9f1 |
File details
Details for the file sliderplot-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: sliderplot-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0877cc74c4bfb9af6e040a65b6e8b99229cc2d438b0490b67d7591d83dba42f0 |
|
MD5 | b8e103837d64c9d4a10fb5ce928324d5 |
|
BLAKE2b-256 | 50439acca98b7454599f2c6b6f6f5ae012a22958fe5c637ac029c3e77879a807 |