matplotting: Routines to help draw shapes / labels within a matplotlib

Routines to help draw shapes / labels within a matplotlib (pyplot) plot. Implements the concept of a plotting profile, which makes it easier to define sizes, colors, etc. for a series of elements.

Functions

autoscaleAxis(ax)

drawBracket(ax, x0, y0, x1, y1[, label, ...])

Draw a bracket from (x0, y0) to (x1, y1)

drawConnectedLines(ax, pairs[, ...])

Draw an open / closed poligon

drawLabel(ax, x, y, text[, size, alpha, profile])

Draw a text label at the given coordinates

drawLine(ax, x0, y0, x1, y1[, color, ...])

Draw a line from (x0, y0) to (x1, y1)

drawRect(ax, x0, y0, x1, y1[, color, alpha, ...])

Draw a rectangle from point (x0, y0) to (x1, y1)

drawRects(ax, data[, facecolor, alpha, ...])

Draw multiple rectangles

makeAxis([pixels, dpi])

Create a plotting axes

makeProfile([default])

Create a profile based on a default profile

plotDurs(durs[, y0, x0, height, labels, ...])

Plot durations as contiguous rectangles