'Set the pen for drawing the line. Allowable arguments are any that are valid
for :func:`mkPen <pyqtgraph.mkPen>`.'

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

    self.pen = fn.mkPen(*args, **kwargs)
    if (not self.mouseHovering):
        self.currentPen = self.pen
        self.update()
