MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / reversed

Method reversed

lib/matplotlib/colors.py:1003–1020  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 4

_gen_cmap_registryFunction · 0.45
test_bivar_resampleFunction · 0.45
test_colormap_reversingFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_bivar_resampleFunction · 0.36
test_colormap_reversingFunction · 0.36