Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

poly_editor Namespace Reference

Detailed Description

This is an example to show how to build cross-GUI applications using
matplotlib event handling to interact with objects on the canvas


class  PolygonInteractor


tuple ax = subplot(111)
tuple fig = figure()
tuple p = PolygonInteractor( ax, poly)
tuple poly = Polygon(zip(xs, ys,), animated=True)
float r = 1.5
tuple theta = arange(0, 2*pi, 0.1)
tuple xs = r*cos(theta)
tuple ys = r*sin(theta)

Generated by  Doxygen 1.6.0   Back to index