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

Method resampled

lib/matplotlib/colors.py:990–1001  ·  view source on GitHub ↗

Return a new colormap with *lutsize* entries.

(self, lutsize)

Source from the content-addressed store, hash-verified

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

Callers 15

resampledMethod · 0.45
get_cmapFunction · 0.45
_get_cmap_normsFunction · 0.45
test_nonormFunction · 0.45
test_pcolormesh_alphaFunction · 0.45
test_multivar_resampleFunction · 0.45
test_bivar_resampleFunction · 0.45

Calls

no outgoing calls

Tested by 11

_get_cmap_normsFunction · 0.36
test_nonormFunction · 0.36
test_pcolormesh_alphaFunction · 0.36
test_multivar_resampleFunction · 0.36
test_bivar_resampleFunction · 0.36
test_resampledFunction · 0.36