drawBracket

emlib.matplotting.drawBracket(ax, x0, y0, x1, y1, label='', color=None, linewidth=None, alpha=None, profile={'alpha': 0.75, 'annotation_alpha': 0.3, 'annotation_color': (0, 0, 0), 'autoscale': True, 'background': (0, 0, 0), 'colormap': 'jet', 'edgecolor': 1, 'facecolor': 0.8, 'label_alpha': 0.75, 'label_font': 'sans-serif', 'label_size': 10, 'line_alpha': 0.8, 'line_style': 'solid', 'linewidth': 1})[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 (float) – alpha value for the rectangle (both facecolor and edgecolor)

  • label – if given, a label is plotted at the center of the rectangle

  • linewidth (float) – line width

  • profile – the profile used, or None for default

Return type:

None