Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::cm::ScalarMappable::add_observer (   self,
  mappable 
) [inherited]

whenever the norm, clim or cmap is set, call the notify
instance of the mappable observer with self.

This is designed to allow one image to follow changes in the
cmap of another image

Definition at line 162 of file cm.py.

00162                                     :
        """
        whenever the norm, clim or cmap is set, call the notify
        instance of the mappable observer with self.

        This is designed to allow one image to follow changes in the
        cmap of another image
        """
        self.observers.append(mappable)
        try:
            self.add_callback(mappable.notify)
        except AttributeError:
            pass

    def notify(self, mappable):


Generated by  Doxygen 1.6.0   Back to index