[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/stable/api/_as_gen/../toolkits/../_as_gen/matplotlib.pyplot.get_cmap.html [Back]  [Original]

matplotlib.pyplot.get_cmap — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

matplotlib.pyplot.get_cmap#

matplotlib.pyplot.get_cmap(name=None, lut=None)[source]#

Get a colormap instance, defaulting to rc values if name is None.

Parameters:
nameColormap or str or None, default: None

If a Colormap instance, it will be returned. Otherwise, the name of a colormap known to Matplotlib, which will be resampled by lut. The default, None, means rcParams["image.cmap"] (default: 'viridis').

lutint or None, default: None

If name is not already a Colormap instance and lut is not None, the colormap will be resampled to have lut entries in the lookup table.

Returns:
Colormap

Examples using matplotlib.pyplot.get_cmap#

[]

Image resampling

Image resampling
[]

Histogram as colorbar

Histogram as colorbar
[]

2D images in 3D

2D images in 3D
[]

Intersecting planes

Intersecting planes
[]

pie(x)

pie(x)

Web Proxy Viewer  |  New URL  |  Original Page