Metadata-Version: 2.1
Name: sliderplot
Version: 0.0.2
Summary: Turn a function into an interactive plot with a single line of code
Home-page: https://github.com/ngripon/sliderplot
Author: Nathan Gripon
Author-email: n.gripon@gmail.com
Project-URL: Bug Tracker, https://github.com/ngripon/sliderplot/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: numpy

# sliderplot

Turn a function into an interactive plot with a single line of code.

<p align="center">
    <img src="https://github.com/ngripon/sliderplot/raw/main/demo.gif" width="520" alt="demo" />
</p>

``` python
    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)
```
