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¶
|
Class to show x, y data points and to allow selection of points for annotations. |
|
Turns on and (re-)initializes the DataCursor for current figures. |
|
Turns off the DataCursor and optionally stops it from blocking |
|
Function to call on a left-click. |
|
Function to call on a right-click. |
|
Suspend python while user selects points up to maxpoints. |
|
Suspend python so user can interact with plots (such as moving previously added annotations) before continuing. |