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

Method resampled

lib/matplotlib/colors.py:1245–1252  ·  view source on GitHub ↗

Return a new colormap with *lutsize* entries.

(self, lutsize)

Source from the content-addressed store, hash-verified

1243 bad=bad, under=under, over=over)
1244
1245 def resampled(self, lutsize):
1246 """Return a new colormap with *lutsize* entries."""
1247 new_cmap = LinearSegmentedColormap(self.name, self._segmentdata,
1248 lutsize)
1249 new_cmap._rgba_over = self._rgba_over
1250 new_cmap._rgba_under = self._rgba_under
1251 new_cmap._rgba_bad = self._rgba_bad
1252 return new_cmap
1253
1254 # Helper ensuring picklability of the reversed cmap.
1255 @staticmethod

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected