Get a scalar alpha value to be applied to the artist as a whole. If the alpha value is a matrix, the method returns 1.0 because pixels have individual alpha values (see `~._ImageBase._make_image` for details). If the alpha value is a scalar, the method returns said
(self)
| 328 | self._imcache = None |
| 329 | |
| 330 | def _get_scalar_alpha(self): |
| 331 | """ |
| 332 | Get a scalar alpha value to be applied to the artist as a whole. |
| 333 | |
| 334 | If the alpha value is a matrix, the method returns 1.0 because pixels |
| 335 | have individual alpha values (see `~._ImageBase._make_image` for |
| 336 | details). If the alpha value is a scalar, the method returns said value |
| 337 | to be applied to the artist as a whole because pixels do not have |
| 338 | individual alpha values. |
| 339 | """ |
| 340 | return 1.0 if self._alpha is None or np.ndim(self._alpha) > 0 \ |
| 341 | else self._alpha |
| 342 | |
| 343 | def changed(self): |
| 344 | """ |
no outgoing calls
no test coverage detected