Set a new gamma value and regenerate colormap.
(self, gamma)
| 1178 | self._update_lut_extremes() |
| 1179 | |
| 1180 | def set_gamma(self, gamma): |
| 1181 | """Set a new gamma value and regenerate colormap.""" |
| 1182 | self._gamma = gamma |
| 1183 | self._init() |
| 1184 | |
| 1185 | @staticmethod |
| 1186 | def from_list(name, colors, N=256, gamma=1.0, *, bad=None, under=None, over=None): |