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)
| 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 | """ |
no outgoing calls
no test coverage detected