drawConnectedLines

emlib.matplotting.drawConnectedLines(ax, pairs, connectEdges=False, color=None, alpha=None, linewidth=None, label='', linestyle='', 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}, cmap='')[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 (_colort) – the color to use. A float selects a color from the current color map

  • alpha (float) – alpha value of the lines

  • linewidth (float) – the line width

  • label – an optional label to attach to the start of the lines

  • linestyle – the line style, one of “solid”, “dashed”

  • profile – the profile used, or None for default

Return type:

None