A library encompassing smart interactions missing in matplotlib
Project description
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
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mpl-interact-0.0.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for mpl_interact-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3311ef7ebc2177e37eef46588967ebe91476031375a79d68815997788a8ccb92 |
|
MD5 | ab72ddcb914d3716c568e90233cac6c9 |
|
BLAKE2b-256 | 08a354a75fb8cc143aada9c105d05191bf8c838df379aa3db7eaa6051e56246b |