

def apply_visuals(self, viewer, data, vmin, vmax):
    if (self.autocuts is not None):
        autocuts = self.autocuts
    else:
        autocuts = viewer.autocuts
    (loval, hival) = viewer.t_['cuts']
    newdata = autocuts.cut_levels(data, loval, hival, vmin=vmin, vmax=vmax)
    return newdata

dataset/ETHPy150Open ejeschke/ginga/ginga/canvas/types/image.py NormImage.apply_visuals/original