'Add a new line to the chart.
This is a convenience method which constructs the DataSeries and appends it
for you.  It returns the new series.
points:  List of equally-spaced y-values for the line
label:   Name of the line (used for the legend)
color:   Hex string, like \'ff0000\' for red
pattern: Tuple for (length of segment, length of gap).  i.e.
LineStyle.DASHED
width:   Width of the line (i.e. LineStyle.THIN)
markers: List of Marker objects to attach to this line (see DataSeries
for more info)'

def AddLine(self, points, label=None, color=None, pattern=LineStyle.SOLID, width=LineStyle.THIN, markers=None):

    if ((color is not None) and isinstance(color[0], common.Marker)):
        warnings.warn('Your    code    may    be    broken!    You    passed    a    list    of    Markers    instead    of    a    color.    The    old    argument    order    (markers    before    color)    is    deprecated.', DeprecationWarning, stacklevel=2)
    style = LineStyle(width, pattern[0], pattern[1], color=color)
    series = common.DataSeries(points, label=label, style=style, markers=markers)
    self.data.append(series)
    return series
