def METHOD_NAME(self):
    self.qapp.processEvents()
    self.plot.setAttribute(qt.Qt.WA_DeleteOnClose)
    self.plot.close()
    del self.plot
    self.qapp.processEvents()
    super(TestImageView, self).METHOD_NAME()