mlreco.visualization.points module¶
-
mlreco.visualization.points.scatter_points(points, dim=3, markersize=5, color='orange', colorscale=None, opacity=0.8, hovertext=None, cmin=None, cmax=None, **kwargs)[source]¶ Produces go.Scatter3d or go.Scatter object to be plotted in plotly - voxels is a list of voxel coordinates (Nx2 or Nx3 matrix) - labels is a list of voxel labels (N vector) INPUTS:
points is (N,2+) shaped array for N points of (x,y,[z],…) coordinate information
markersize specifies the size of a marker (drawn per point)
color can be a string to specify a color for all points, or an array of (N) values for gradient color
colorscale defines the gradient colors to be used when color values are specified per point
opacity is a transparency of each points when drawn
hovertext is an additional text to be shown when a cursor hovers on a point (interactive legend)
- OUTPUT
- go.Scatter3d object