Return a new colormap with *lutsize* entries.
(self, lutsize)
| 988 | np.all(self._lut[:, 0] == self._lut[:, 2])) |
| 989 | |
| 990 | def resampled(self, lutsize): |
| 991 | """Return a new colormap with *lutsize* entries.""" |
| 992 | if hasattr(self, '_resample'): |
| 993 | _api.warn_external( |
| 994 | "The ability to resample a color map is now public API " |
| 995 | f"However the class {type(self)} still only implements " |
| 996 | "the previous private _resample method. Please update " |
| 997 | "your class." |
| 998 | ) |
| 999 | return self._resample(lutsize) |
| 1000 | |
| 1001 | raise NotImplementedError() |
| 1002 | |
| 1003 | def reversed(self, name=None): |
| 1004 | """ |
no outgoing calls