drawRect

emlib.matplotting.drawRect(ax, x0, y0, x1, y1, color=None, alpha=None, edgecolor=None, label=None, profile=None)[source]

Draw a rectangle from point (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

  • edgecolor – the color of the edges

  • 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