drawConnectedLines

emlib.matplotting.drawConnectedLines(ax, pairs, connectEdges=False, color=None, alpha=None, linewidth=None, label=None, linestyle=None, profile=None)[source]

Draw an open / closed poligon

Parameters:
  • ax (Axes) – the plot axes

  • pairs (list[tuple[float, float]]) – a list of (x, y) pairs

  • connectEdges – close the form, connecting start end end points

  • color (Union[float, tuple, None]) – the color to use. A float selects a color from the current color map

  • alpha (Optional[float]) – alpha value of the lines

  • linewidth (Optional[float]) – the line width

  • label (Optional[str]) – an optional label to attach to the start of the lines

  • linestyle (Optional[str]) – the line style, one of “solid”, “dashed”

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

Return type:

None