_BaseDataSetMapper.set_custom_opacity#
- _BaseDataSetMapper.set_custom_opacity(
- opacity: NDArray[np.floating],
- *,
- color: ColorLike,
- n_colors: int,
- preference: PointLiteral | CellLiteral = 'point',
Set custom opacity.
- Parameters:
- opacity
numpy.ndarray Opacity array to color the dataset. Array length must match either the number of points or cells.
- color
ColorLike The color to use with the opacity array.
- n_colors
int Number of colors to use.
- preference
str, default: ‘point’ Either
'point'or'cell'. Used when the number of cells matches the number of points.
- opacity