'| Sets the pen used to draw lines between points.
| *pen* can be a QPen or any argument accepted by :func:`pyqtgraph.mkPen() <pyqtgraph.mkPen>`'

def setPen(self, *args, **kargs):

    pen = fn.mkPen(*args, **kargs)
    self.opts['pen'] = pen
    self.updateItems()
