Skip to content

A library encompassing smart interactions missing in matplotlib

License

Notifications You must be signed in to change notification settings

espdev/mpl-interact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpl-interact

PyPI version Build status Docs status License

A library encompassing smart interactions missing in matplotlib

UNDER DEVELOPMENT

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()

About

A library encompassing smart interactions missing in matplotlib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages