A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://proplot.readthedocs.io/en/latest/api/proplot.colors.ContinuousColormap.to_discrete.html below:

ContinuousColormap.to_discrete — ProPlot documentation

ProPlot ContinuousColormap.to_discrete
ContinuousColormap.to_discrete(samples=10, name=None, **kwargs)[source]

Convert the ContinuousColormap to a DiscreteColormap by drawing samples from the colormap.

Parameters
  • samples (int or sequence of float, optional) – If integer, draw samples at the colormap coordinates np.linspace(0, 1, samples). If sequence of float, draw samples at the specified points.

  • name (str, default: '_name_copy') – The new colormap name.

Other Parameters

**kwargs – Passed to DiscreteColormap.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4