mask_trace_3D#
- crispy.visualize.mask_trace_3D(mask3D, size=2.5, color='black', opacity=0.9, name='spines')[source]#
Generate a 3D scatter plot of True-valued positions in a 3D boolean array.
- Parameters:
mask3D (numpy.ndarray) – A 3D boolean numpy array where True values indicate points to be plotted.
size (int, optional) – Size of the scatter plot markers. Default is 2.
color (str, optional) – Color of the markers. Default is “black”.
opacity (float, optional) – Opacity of the markers, ranging from 0 (transparent) to 1 (opaque). Default is 0.9.
name (str, optional) – Label for the trace in the Plotly legend. Default is “spines”.
- Returns:
A Plotly 3D scatter trace representing the masked points.
- Return type:
plotly.graph_objects.Scatter3d