Unit tests for annotate.

Function dataToPixels Given a data-point value z along the x (or y) axis, returns the number of pixels from the left (or bottom) of the subplot.
Class MockBBox A mock Matplotlib bounding box for a MockAnnotation or window extents of a MockAxes.
Class MockFigure A stand-in for the Matplotlib Figure object. I have a 10-pixel border around my single fake subplot, resulting in dimensions of 520x520 pixels.
Class MockAxes A stand-in for the Matplotlib Axes object.
Class MockAnnotation A mock Matplotlib Annotation object pointing to a data-point location of x, y, centered at an offet of dx, dy pixels.
Class Test_RectangleRegion Unit tests for RectangleRegion.
Class Test_PositionEvaluator Unit tests for PositionEvaluator.
def dataToPixels(z):

Given a data-point value z along the x (or y) axis, returns the number of pixels from the left (or bottom) of the subplot.

API Documentation for yampex, generated by pydoctor at 2022-11-21 15:03:54.