drawBracket¶
- emlib.matplotting.drawBracket(ax, x0, y0, x1, y1, label=None, color=None, linewidth=None, alpha=None, profile=None)[source]¶
Draw a bracket from (x0, y0) to (x1, y1)
- Parameters:
ax (
Axes
) – the plot axex0 (
float
) – x coord of the start pointy0 (
float
) – y coord of the start pointx1 (
float
) – x coord of the end pointy1 (
float
) – y coord of the end pointcolor – the face color
alpha (
Optional
[float
]) – alpha value for the rectangle (both facecolor and edgecolor)label (
Optional
[str
]) – if given, a label is plotted at the center of the rectangleprofile (
Optional
[dict
]) – the profile used, or None for default
- Return type:
None