Logo Search packages:      
Sourcecode: matplotlib version File versions

def matplotlib::cm::ScalarMappable::__init__ (   self,
  norm = None,
  cmap = None 
) [inherited]

*norm* is an instance of :class:`colors.Normalize` or one of
its subclasses, used to map luminance to 0-1. *cmap* is a
:mod:`cm` colormap instance, for example :data:`cm.jet`

Definition at line 30 of file cm.py.

00030                                             :
        """
        *norm* is an instance of :class:`colors.Normalize` or one of
        its subclasses, used to map luminance to 0-1. *cmap* is a
        :mod:`cm` colormap instance, for example :data:`cm.jet`
        """

        self.callbacksSM = cbook.CallbackRegistry((
                'changed',))

        if cmap is None: cmap = get_cmap()
        if norm is None: norm = colors.Normalize()

        self._A = None
        self.norm = norm
        self.cmap = cmap
        self.colorbar = None
        self.update_dict = {'array':False}

    def set_colorbar(self, im, ax):


Generated by  Doxygen 1.6.0   Back to index