mpl.patches

Functions

allow_rasterization(draw) Decorator for Artist.draw method.
bbox_artist(artist, renderer[, props, fill]) This is a debug function to draw a rectangle around the bounding box returned by get_window_extent() of an artist, to test whether the artist is returning the correct bbox.
concatenate_paths(paths) concatenate list of paths into a single path.
draw_bbox(bbox, renderer[, color, trans]) This is a debug function to draw a rectangle around the bounding box returned by get_window_extent() of an artist, to test whether the artist is returning the correct bbox.
get_cos_sin(x0, y0, x1, y1)
get_intersection(cx1, cy1, cos_t1, sin_t1, ...) return a intersecting point between a line through (cx1, cy1)
get_parallels(bezier2, width) Given the quadratic bezier control points bezier2, returns control points of quadratic bezier lines roughly parallel to given one separated by width.
inside_circle(cx, cy, r)
make_path_regular(p) fill in the codes if None.
make_wedged_bezier2(bezier2, width[, w1, wm, w2]) Being similar to get_parallels, returns control points of two quadrativ bezier lines having a width roughly parralel to given one separated by width.
split_bezier_intersecting_with_closedpath(...) bezier : control points of the bezier segment
split_path_inout(path, inside[, tolerence, ...]) divide a path into two segment at the point where inside(x, y)

Classes

Arc(xy, width, height[, angle, theta1, theta2]) An elliptical arc.
Arrow(x, y, dx, dy[, width]) An arrow patch.
ArrowStyle ArrowStyle is a container class which defines several
BoxStyle BoxStyle is a container class which defines several
Circle(xy[, radius]) A circle patch.
CirclePolygon(xy[, radius, resolution]) A polygon-approximation of a circle patch.
ConnectionPatch(xyA, xyB, coordsA[, ...]) A ConnectionPatch class is to make connecting lines between two points (possibly in different axes).
ConnectionStyle ConnectionStyle is a container class which defines
Ellipse(xy, width, height[, angle]) A scale-free ellipse.
FancyArrow(x, y, dx, dy[, width, ...]) Like Arrow, but lets you set head width and head height independently.
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.
Patch([edgecolor, facecolor, color, ...]) A patch is a 2D artist with a face color and an edge color.
Path(vertices[, codes, ...]) Path represents a series of possibly disconnected,
PathPatch(path, **kwargs) A general polycurve path patch.
Polygon(xy[, closed]) A general polygon patch.
Rectangle(xy, width, height[, angle]) Draw a rectangle with lower left at xy = (x, y) with specified width and height.
RegularPolygon(xy, numVertices[, radius, ...]) A regular polygon patch.
Shadow(patch, ox, oy[, props])
Wedge(center, r, theta1, theta2[, width]) Wedge shaped patch.
YAArrow(figure, xytip, xybase[, width, ...]) Yet another arrow class.
map alias of imap
zip alias of izip