'Creates a new :obj:`.OWCurve` with the specified parameters and adds it to the graph.
If ``enableLegend`` is ``True``, a curve symbol is added to the legend.'

def add_curve(self, name, brushColor=None, penColor=None, size=5, style=Qt.NoPen, symbol=OWPoint.Ellipse, enableLegend=False, xData=[], yData=[], showFilledSymbols=None, lineWidth=1, pen=None, autoScale=0, antiAlias=None, penAlpha=255, brushAlpha=255, x_axis_key=xBottom, y_axis_key=yLeft):

    c = OWCurve(xData, yData, x_axis_key, y_axis_key, tooltip=name)
    c.set_zoom_transform(self._zoom_transform)
    c.name = name
    c.set_style(style)
    if (not brushColor):
        brushColor = self.color(OWPalette.Data)
    if (not penColor):
        penColor = self.color(OWPalette.Data)
    c.set_color(penColor)
    if pen:
        p = pen
    else:
        p = QPen()
        p.setColor(penColor)
        p.setWidth(lineWidth)
    c.set_pen(p)
    c.set_brush(brushColor)
    c.set_symbol(symbol)
    c.set_point_size(size)
    c.set_data(xData, yData)
    c.set_auto_scale(autoScale)
    return self.add_custom_curve(c, enableLegend)
