| [ Web Proxy ] |
| Viewing: https://matplotlib.org/devdocs/api/_as_gen/../../api/../api/_as_gen/matplotlib.colors.Colormap.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.colorsBases: object
Baseclass for all scalar to RGBA mappings.
Typically, Colormap instances are used to convert data values (floats)
from the interval [0, 1] to the RGBA color that the respective
Colormap represents. For scaling of data into the [0, 1] interval see
matplotlib.colors.Normalize. Subclasses of matplotlib.cm.ScalarMappable
make heavy use of this data -> normalize -> map-to-color processing
chain.
The name of the colormap.
The number of RGB quantization levels.
The color for invalid values (NaN or masked).
Added in version 3.11.
The color for low out-of-range values.
Added in version 3.11.
The color for high out-of-range values.
Added in version 3.11.
The data value(s) to convert to RGBA.
For floats, X should be in the interval [0.0, 1.0] to
return the RGBA values X*100 percent along the Colormap line.
For integers, X should be in the interval [0, Colormap.N) to
return RGBA values indexed from the Colormap with index X.
Alpha must be a scalar between 0 and 1, a sequence of such floats with shape matching X, or None.
If False (default), the returned RGBA values will be floats in the
interval [0, 1] otherwise they will be numpy.uint8s in the
interval [0, 255].
X.shape + (4, ).When this colormap exists on a scalar mappable and colorbar_extend
is not False, colorbar creation will pick up colorbar_extend as
the default value for the extend keyword in the
matplotlib.colorbar.Colorbar constructor.
Return a reversed instance of the Colormap.
Note
This function is not implemented for the base class.
The name for the reversed colormap. If None, the
name is set to self.name + "_r".
[Deprecated] Set the color for masked values.
Notes
Deprecated since version 3.11: Use cmap.with_extremes(bad=...) or Colormap(bad=...) instead.
[Deprecated] Set the colors for masked (bad) values and, when norm.clip =
False, low (under) and high (over) out-of-range values.
Notes
Deprecated since version 3.11: Use cmap.with_extremes(bad=..., under=..., over=...) or Colormap(bad=..., under=..., over=...) instead.
[Deprecated] Set the color for high out-of-range values.
Notes
Deprecated since version 3.11: Use cmap.with_extremes(over=...) or Colormap(over=...) instead.
[Deprecated] Set the color for low out-of-range values.
Notes
Deprecated since version 3.11: Use cmap.with_extremes(under=...) or Colormap(under=...) instead.
matplotlib.colors.Colormap#ColormapColormap.__call__()Colormap.colorbar_extendColormap.copy()Colormap.get_bad()Colormap.get_over()Colormap.get_under()Colormap.is_gray()Colormap.resampled()Colormap.reversed()Colormap.set_bad()Colormap.set_extremes()Colormap.set_over()Colormap.set_under()Colormap.with_alpha()Colormap.with_extremes()matplotlib.colors.Colormap
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-738-ge3fc0dad9.
Built with the PyData Sphinx Theme 0.18.0.
| Web Proxy Viewer | New URL | Original Page |