Return a reversed instance of the Colormap. .. note:: This function is not implemented for the base class. Parameters ---------- name : str, optional The name for the reversed colormap. If None, the name is set to ``self.name + "_r"`
(self, name=None)
| 1001 | raise NotImplementedError() |
| 1002 | |
| 1003 | def reversed(self, name=None): |
| 1004 | """ |
| 1005 | Return a reversed instance of the Colormap. |
| 1006 | |
| 1007 | .. note:: This function is not implemented for the base class. |
| 1008 | |
| 1009 | Parameters |
| 1010 | ---------- |
| 1011 | name : str, optional |
| 1012 | The name for the reversed colormap. If None, the |
| 1013 | name is set to ``self.name + "_r"``. |
| 1014 | |
| 1015 | See Also |
| 1016 | -------- |
| 1017 | LinearSegmentedColormap.reversed |
| 1018 | ListedColormap.reversed |
| 1019 | """ |
| 1020 | raise NotImplementedError() |
| 1021 | |
| 1022 | def _repr_png_(self): |
| 1023 | """Generate a PNG representation of the Colormap.""" |
no outgoing calls