def plot_line(ax, points, *args, **kwargs):
    """Connect a list of complex points with piecewise line segments.
    """
    xli = [z.real for z in points]
    yli = [z.imag for z in points]
    return ax.plot(xli, yli, *args, **kwargs)