scatter

m3sh.vis.scatter(points, style='spheres', size=1.0, color=(0.4118, 0.4118, 0.4118))[source]

Scatter plot.

Visual representation of points. Display spheres of given radius.

Parameters:
  • points (array_like, shape (n, 3), n > 1) – Point coordinates.

  • style (str, optional) – Either ‘spheres’ or ‘cubes’.

  • size (float, optional) – Sphere radius.

  • color (array_like, shape (3, ), optional) – Color intensity triplet.

Returns:

Sphere congruence prop.

Return type:

Spheres

Note

If points is of type ndarray its data buffer is shared with VTK’s data objects (use a copy of points to decouple storage).