Download particles from a simulated dark matter halo.

This dataset contains 32,314 particles.

loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

pyvista.PointSet | str

DataSet or filename depending on load.


Download the dark matter cloud and display its representation.

>>> import numpy as np
>>> from pyvista import examples
>>> pc = examples.download_cloud_dark_matter()
>>> pc
PointSet (...)
  N Cells:    0
  N Points:   32314
  X Bounds:   7.451e+01, 7.892e+01
  Y Bounds:   1.616e+01, 2.275e+01
  Z Bounds:   8.900e+01, 9.319e+01
  N Arrays:   0

Plot the point cloud. Color based on the distance from the center of the cloud.

>>> pc.plot(
...     scalars=np.linalg.norm(pc.points -, axis=1),
...     style='points_gaussian',
...     opacity=0.5,
...     point_size=1.5,
...     show_scalar_bar=False,
...     zoom=2,
... )

See also

Cloud Dark Matter Dataset

See this dataset in the Dataset Gallery for more info.

Cloud Dark Matter Dense Dataset

Plotting Point Clouds

Full example using this dataset