yampex.annotate
module documentation
Part of yampex
Smart plot annotations.
Function | getOffset | Returns the offset of the supplied Matplotlib annotation object, in pixels from its data point location on its subplot. |
Class | Sizer | I try to provide accurate sizing of annotations. Call my instance with a Matplotlib annotation object to get an estimate of its dimensions in pixels. |
Class | RectangleRegion | I am a rectangular plot region where an annotation or textbox is or might go. |
Class | PositionEvaluator | Use an instance of me to evaluate the overlap score of a proposed position of an annotation, based on subplot data, boundaries, and the positions of all other annotations in the subplot. |
Class | DebugBoxer | I draw a colored box at to visually represent RectangleRegion
instances for debugging purposes. |
Class | Annotator | I manage the annotations for all axes in a single subplot. You'll need an instance of me for each subplot that contains annotations. |