docs: def updateImage(self, imgdata, xaxis=None, yaxis=None):
          """Updates the Widget image directly.
  
          :type imgdata: numpy.ndarray, see :meth:`pyqtgraph:pyqtgraph.ImageItem.setImage`
          :param xaxis: x-axis values, length should match dimension 1 of imgdata
          :param yaxis: y-axis values, length should match dimension 0 of imgdata
          """
          imgdata = imgdata.T
          self.img.setImage(imgdata)
          if xaxis is not None and yaxis is not None:
              xscale = 1.0/(imgdata.shape[0]/xaxis[-1])
              yscale = 1.0/(imgdata.shape[1]/yaxis[-1])
              self.resetScale()        
              self.img.scale(xscale, yscale)
              self.imgScale = (xscale, yscale)
          self.imageArray = np.fliplr(imgdata)
          self.updateColormap()