A RetroSearch Logo

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

Search Query:

Showing content from https://ultraplot.readthedocs.io/en/latest/api/ultraplot.colors.ColormapDatabase.html below:

Website Navigation


ColormapDatabase — UltraPlot documentation

ColormapDatabase
class ColormapDatabase(kwargs)[source]

Bases: ColormapRegistry

Dictionary subclass used to replace the matplotlib colormap registry. See __getitem__ and __setitem__ for details.

Parameters:

kwargs (dict-like) – The source dictionary.

Methods Summary

get_cmap(cmap)

Return a color map specified through cmap.

register(cmap, *[, name, force])

Add the colormap after validating and converting.

Methods Documentation

get_cmap(cmap)[source]

Return a color map specified through cmap.

Parameters:

cmap (str or Colormap or None) –

  • if a Colormap, return it

  • if a string, look it up in mpl.colormaps

  • if None, return the Colormap defined in rc['image.cmap'] = 'Fire'

Returns:

Colormap

register(cmap, *, name=None, force=False)[source]

Add the colormap after validating and converting.


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