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

def matplotlib::collections::PatchCollection::set_alpha (   self,
  alpha 
) [inherited]

Set the alpha tranpancies of the collection.  Alpha must be
a float.

ACCEPTS: float

Reimplemented from matplotlib::artist::Artist.

Definition at line 262 of file collections.py.

00262                               :
        """
        Set the alpha tranpancies of the collection.  Alpha must be
        a float.

        ACCEPTS: float
        """
        try: float(alpha)
        except TypeError: raise TypeError('alpha must be a float')
        else:
            artist.Artist.set_alpha(self, alpha)
            self._facecolors = [(r,g,b,alpha) for r,g,b,a in self._facecolors]
            if cbook.is_string_like(self._edgecolors) and self._edgecolors != 'None':
                self._edgecolors = [(r,g,b,alpha) for r,g,b,a in self._edgecolors]

    def update_scalarmappable(self):


Generated by  Doxygen 1.6.0   Back to index