Return whether the colormap is grayscale.
(self)
| 982 | self._init() |
| 983 | |
| 984 | def is_gray(self): |
| 985 | """Return whether the colormap is grayscale.""" |
| 986 | self._ensure_inited() |
| 987 | return (np.all(self._lut[:, 0] == self._lut[:, 1]) and |
| 988 | np.all(self._lut[:, 0] == self._lut[:, 2])) |
| 989 | |
| 990 | def resampled(self, lutsize): |
| 991 | """Return a new colormap with *lutsize* entries.""" |
nothing calls this directly
no test coverage detected