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

Method set_alpha

lib/matplotlib/image.py:316–328  ·  view source on GitHub ↗

Set the alpha value used for blending - not supported on all backends. Parameters ---------- alpha : float or 2D array-like or None

(self, alpha)

Source from the content-addressed store, hash-verified

314 return self._A.shape
315
316 def set_alpha(self, alpha):
317 """
318 Set the alpha value used for blending - not supported on all backends.
319
320 Parameters
321 ----------
322 alpha : float or 2D array-like or None
323 """
324 martist.Artist._set_alpha_for_array(self, alpha)
325 if np.ndim(alpha) not in (0, 2):
326 raise TypeError('alpha must be a float, two-dimensional '
327 'array, or None')
328 self._imcache = None
329
330 def _get_scalar_alpha(self):
331 """

Callers 1

drawMethod · 0.45

Calls 1

_set_alpha_for_arrayMethod · 0.80

Tested by

no test coverage detected