mpl.text

Classes for including text in a figure.

Functions

allow_rasterization(draw) Decorator for Artist.draw method.
get_rotation(rotation) Return the text angle as float.
is_string_like(obj) Return True if obj looks like a string

Classes

Affine2D([matrix]) A mutable 2D affine transformation.
Annotation(s, xy[, xytext, xycoords, ...]) A Text class to make annotating things in the figure, such as Figure, Axes, Rectangle, etc., easier.
Artist() Abstract base class for someone who renders into a FigureCanvas.
Bbox(points, **kwargs) A mutable bounding box.
BboxBase([shorthand_name]) This is the base class of all bounding boxes, and provides read-only access to its data.
BboxTransformTo(boxout, **kwargs) BboxTransformTo is a transformation that linearly
FancyArrowPatch([posA, posB, path, ...]) A fancy arrow patch.
FancyBboxPatch(xy, width, height[, ...]) Draw a fancy box around a rectangle with lower left at xy*=(*x, y) with specified width and height.
FontProperties([family, style, variant, ...]) A class for storing and manipulating font properties.
Line2D(xdata, ydata[, linewidth, linestyle, ...]) A line - the line can have both a solid linestyle connecting all the vertices, and a marker at each vertex.
OffsetFrom(artist, ref_coord[, unit])
Path(vertices[, codes, ...]) Path represents a series of possibly disconnected,
Rectangle(xy, width, height[, angle]) Draw a rectangle with lower left at xy = (x, y) with specified width and height.
RendererBase() An abstract base class to handle drawing/rendering operations.
Text([x, y, text, color, verticalalignment, ...]) Handle storing and drawing of text in window or data coordinates.
TextPath(xy, s[, size, prop, ...]) Create a path from the text.
TextWithDash([x, y, text, color, ...]) This is basically a Text with a dash (drawn with a Line2D) before/after it.
Transform([shorthand_name]) The base class of all TransformNode instances that actually perform a transformation.
maxdict(maxsize) A dictionary with a maximum size; this doesn’t override all the
zip alias of izip