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 axe

  • x0 (float) – x coord of the start point

  • y0 (float) – y coord of the start point

  • x1 (float) – x coord of the end point

  • y1 (float) – y coord of the end point

  • color – 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 rectangle

  • profile (Optional[dict]) – the profile used, or None for default

Return type:

None