@@ -483,13 +483,15 @@ class Colormap(object):
483483 Typically Colormap instances are used to convert data values (floats) from
484484 the interval ``[0, 1]`` to the RGBA color that the respective Colormap
485485 represents. For scaling of data into the ``[0, 1]`` interval see
486- :class:`matplotlib.colors.Normalize`.
486+ :class:`matplotlib.colors.Normalize`. It is worth noting that
487+ :class:`matplotlib.cm.ScalarMappable` subclasses make heavy use of this
488+ ``data->normalize->map-to-color`` processing chain.
487489
488490 """
489491 def __init__ (self , name , N = 256 ):
490- """
492+ r """
491493 Parameters
492-
494+ ----------
493495 name : str
494496 The name of the colormap.
495497 N : int
@@ -508,25 +510,23 @@ def __init__(self, name, N=256):
508510
509511 def __call__ (self , X , alpha = None , bytes = False ):
510512 """
511- Parameters:
512-
513+ Parameters
514+ ----------
513515 X : scalar, ndarray
514516 The data value(s) to convert to RGBA.
515517 For floats, X should be in the interval ``[0.0, 1.0]`` to
516518 return the RGBA values ``X*100`` percent along the Colormap line.
517519 For integers, X should be in the interval ``[0, Colormap.N)`` to
518520 return RGBA values *indexed* from the Colormap with index ``X``.
519-
520521 alpha : float, None
521522 Alpha must be a scalar between 0 and 1, or None.
522-
523523 bytes : bool
524524 If False (default), the returned RGBA values will be floats in the
525525 interval ``[0, 1]`` otherwise they will be uint8s in the interval
526526 ``[0, 255]``.
527527
528- Returns:
529-
528+ Returns
529+ -------
530530 Tuple of RGBA values if X is scalar, othewise an array of
531531 RGBA values with a shape of ``X.shape + (4, )``.
532532
0 commit comments