def releaseObject(self): """ Releases the plot and cleans up resources. """ self.stop() super(PlotBase,self).releaseObject() self.close()