| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/../../devel/MEP/../../api/toolkits/../colors_api.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.colorsmatplotlib.colors#Note
The Color tutorials and examples demonstrate how to set colors and colormaps. You may want to read those instead.
A module for converting numbers or color arguments to RGB or RGBA.
RGB and RGBA are sequences of, respectively, 3 or 4 floats in the range 0-1.
This module includes functions and classes for color specification conversions, and for mapping numbers to colors in a 1-D array of colors called a colormap.
Mapping data onto colors using a colormap typically involves two steps: a data
array is first mapped onto the range 0-1 using a subclass of Normalize,
then this number is mapped to a color using a subclass of Colormap. Two
subclasses of Colormap provided here: LinearSegmentedColormap, which uses
piecewise-linear interpolation to define colormaps, and ListedColormap, which
makes a colormap from a list of colors.
See also
Creating Colormaps in Matplotlib for examples of how to make colormaps and
Choosing Colormaps in Matplotlib for a list of built-in colormaps.
Colormap normalization for more details about data normalization
More colormaps are available at palettable.
The module also provides functions for checking whether an object can be
interpreted as a color (is_color_like), for converting such an object
to an RGBA tuple (to_rgba) or to an HTML-like hex string in the
"#rrggbb" format (to_hex), and a sequence of colors to an (n, 4)
RGBA array (to_rgba_array). Caching is used for efficiency.
Colors that Matplotlib recognizes are listed at Specifying colors.
|
Abstract base class for normalizations. |
|
A class which, when called, maps values within the interval |
|
Dummy replacement for |
|
The inverse hyperbolic sine scale is approximately linear near the origin, but becomes logarithmic for larger positive or negative values. |
|
Generate a colormap index based on discrete intervals. |
|
Normalize symmetrical data around a center (0 by default). |
|
Arbitrary normalization using functions for the forward and inverse. |
|
Normalize a given value to the 0-1 range on a log scale. |
|
Linearly map a given value to the 0-1 range and then apply a power-law normalization over that range. |
|
The symmetrical logarithmic scale is logarithmic in both the positive and negative directions from the origin. |
|
Normalize data with a set center. |
|
A class which contains multiple scalar norms. |
|
Baseclass for all scalar to RGBA mappings. |
|
Colormap objects based on lookup tables using linear segments. |
|
Colormap object generated from a list of colors. |
|
Base class for all bivariate to RGBA mappings. |
|
BivarColormap object generated by supersampling a regular grid. |
|
BivarColormap object generated by supersampling a regular grid. |
Container for sequences of colors that are known to Matplotlib by name. |
|
|
Create a light source coming from the specified azimuth and elevation. |
|
A helper routine to generate a cmap and a norm instance which behave similar to contourf's levels and colors arguments. |
|
Convert HSV values to RGB. |
|
Convert an array of float RGB values (in the range [0, 1]) to HSV values. |
|
Convert c to a hex color. |
|
Convert the color c to an RGB color tuple. |
|
Convert c to an RGBA color. |
|
Convert c to a (n, 4) array of RGBA colors. |
Return whether c as a valid Matplotlib color specifier. |
|
|
Return whether the colors c1 and c2 are the same. |
Return the global mapping of names to named colors. |
|
|
Decorator for building a |
The data used to populate the List of named colors are exposed as dictionaries that map color names to hex strings.
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-1-g879ad8ebba.
Built with the PyData Sphinx Theme 0.16.1.
| Web Proxy Viewer | New URL | Original Page |