Skip to main content

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


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)

Uploaded Source

Built Distribution

mpl_interact-0.0.1-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page