def update_vmax(self, vmax):
        if vmax < self._clim[0]:
            self._clim = (self._clim[0], self._clim[0])
        else:
            self._clim = (self._clim[0], vmax)
        self.image.set_clim(*self._clim)
        self.fig.canvas.draw()
dataset/ETHPy150Open glue-viz/glue/glue/external/pvextractor/gui.py/PVSlicer.update_vmax/original