drawRects¶
- emlib.matplotting.drawRects(ax, data, facecolor=None, alpha=None, edgecolor=None, linewidth=None, profile=None, autolim=True)[source]¶
Draw multiple rectangles
- Parameters:
ax (
Axes
) – the plot axesdata – either a 2D array of shape (num. rectangles, 4), or a list of tuples (x0, y0, x1, y1), where each row is a rectangle
facecolor – the face color
edgecolor – the color of the edges
alpha (
Optional
[float
]) – alpha value for the rectangle (both facecolor and edgecolor)label – if given, a label is plotted at the center of the rectangle
profile (
Optional
[dict
]) – the profile used, or None for defaultautolim – autoscale view
- Return type:
None