Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Module « matplotlib.pyplot »

Classe « Colormap »

Informations générales

Héritage

builtins.object
    Colormap

Définition

class Colormap(builtins.object):

help(Colormap)

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.

Constructeur(s)

Signature du constructeur Description
__init__(self, name, N=256)

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, other)

Opérateurs hérités de la classe object

__ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__call__(self, X, alpha=None, bytes=False)
__copy__(self)
copy(self) Return a copy of the colormap. [extrait de copy.__doc__]
get_bad(self) Get the color for masked values. [extrait de get_bad.__doc__]
get_over(self) Get the color for high out-of-range values. [extrait de get_over.__doc__]
get_under(self) Get the color for low out-of-range values. [extrait de get_under.__doc__]
is_gray(self) Return whether the colormap is grayscale. [extrait de is_gray.__doc__]
resampled(self, lutsize) Return a new colormap with *lutsize* entries. [extrait de resampled.__doc__]
reversed(self, name=None)
set_bad(self, color='k', alpha=None) Set the color for masked values. [extrait de set_bad.__doc__]
set_extremes(self, *, bad=None, under=None, over=None)
set_over(self, color='k', alpha=None) Set the color for high out-of-range values. [extrait de set_over.__doc__]
set_under(self, color='k', alpha=None) Set the color for low out-of-range values. [extrait de set_under.__doc__]
with_extremes(self, *, bad=None, under=None, over=None)

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé