def METHOD_NAME(self, x: np.ndarray, y: np.ndarray, z: np.ndarray) -> None:
    """Set data to be plotted as image.
    Clears the plot before creating a new scatter item (based on flattened
    input data) that gets placed in the plot and linked to the colorscale.
    :param x: x coordinates
    :param y: y coordinates
    :param z: data values
    :return: None
    """
    self.clearPlot()
    self.scatter = pg.ScatterPlotItem()
    self.scatter.setData(x=x.flatten(), y=y.flatten(), symbol='o', size=8)
    self.plot.addItem(self.scatter)
    self.scatterZVals = z.flatten()
    self.colorbar.setLevels((z.min(), z.max()))
    self.colorbar.rounding = (z.max() - z.min()) * 1e-2
    self._colorScatterPoints(self.colorbar)
    self.colorbar.sigLevelsChanged.connect(self._colorScatterPoints)