Interacting with plots

A class for interactively annotating matplotlib plots.

This class was inspired by code posted by HappyLeapSecond which was derived from code posted by Joe Kington. See:

http://stackoverflow.com/questions/13306519/get-data-from-plot-with-matplotlib

The DataCursor Class

DataCursor([ax, figs, hover, mk_label, ...])

Class to show x, y data points and to allow selection of points for annotations.

DataCursor.on([ax, figs, callbacks, reset])

Turns on and (re-)initializes the DataCursor for current figures.

DataCursor.off([stop_blocking])

Turns off the DataCursor and optionally stops it from blocking

DataCursor.addpt_func(func)

Function to call on a left-click.

DataCursor.delpt_func(func)

Function to call on a right-click.

DataCursor.getdata([maxpoints, msg])

Suspend python while user selects points up to maxpoints.

DataCursor.pause([msg])

Suspend python so user can interact with plots (such as moving previously added annotations) before continuing.