'Set the title of the plot. Basic HTML formatting is allowed.
If title is None, then the title will be hidden.'

def setTitle(self, title=None, **args):

    if (title is None):
        self.titleLabel.setVisible(False)
        self.layout.setRowFixedHeight(0, 0)
        self.titleLabel.setMaximumHeight(0)
    else:
        self.titleLabel.setMaximumHeight(30)
        self.layout.setRowFixedHeight(0, 30)
        self.titleLabel.setVisible(True)
        self.titleLabel.setText(title, **args)
