MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_alpha

Method set_alpha

lib/matplotlib/colorbar.py:1004–1011  ·  view source on GitHub ↗

Set the transparency between 0 (transparent) and 1 (opaque). If an array is provided, *alpha* will be set to None to use the transparency values associated with the colormap.

(self, alpha)

Source from the content-addressed store, hash-verified

1002 self.stale = True
1003
1004 def set_alpha(self, alpha):
1005 """
1006 Set the transparency between 0 (transparent) and 1 (opaque).
1007
1008 If an array is provided, *alpha* will be set to None to use the
1009 transparency values associated with the colormap.
1010 """
1011 self.alpha = None if isinstance(alpha, np.ndarray) else alpha
1012
1013 def _set_scale(self, scale, **kwargs):
1014 """

Callers 2

__init__Method · 0.95
update_normalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected