Metadata-Version: 2.1
Name: mpl-interact
Version: 0.0.1
Summary: A library encompassing smart interactions missing in matplotlib
Home-page: https://github.com/espdev/mpl-interact
Author: Eugene Prilepin
Author-email: esp.home@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.6, <4
Description-Content-Type: text/markdown
Requires-Dist: matplotlib (<3.2,>=2.0)
Requires-Dist: mpl-events (<0.2.0,>=0.0.5)


# mpl-interact

A library encompassing smart interactions missing in matplotlib

## Usage

The following code enables interactors for GCF:

* zoom by mouse wheel scrolling
* drag by mouse left button
* reset by mouse any button double click

```python
import numpy as np
from matplotlib import pyplot as plt
from mpl_interact import interact

x = np.linspace(0, 2*np.pi, 100)
ys = np.sin(x)
yc = np.cos(x)

plt.plot(x, ys, 'o-', x, yc, 'o-')

interact()

plt.show()
```


