def clearImg ( self ) : self . img . setImage ( np . array ( [ [ 0 ] ] ) ) self . img . image = None
plotting in python clear previous image
Clears the current image
def clearImg(self):
        """Clears the current image"""
        self.img.setImage(np.array([[0]]))
        self.img.image = None