# Examples from pyvista.examples.downloads.download_cloud_dark_matter_dense
# =========================================================================

# Download the dark matter cloud and display its representation.
import numpy as np
from pyvista import examples
pc = examples.download_cloud_dark_matter_dense()
pc

# Plot the point cloud. Color based on the distance from the center of the
# cloud.
pc.plot(
    scalars=np.linalg.norm(pc.points - pc.center, axis=1),
    style='points_gaussian',
    opacity=0.030,
    point_size=2.0,
    show_scalar_bar=False,
    zoom=2,
)

# SEE ALSO:
#     Cloud Dark Matter Dense Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#cloud-dark-matter-dense-dataset
#     See this dataset in the Dataset Gallery for more info.
#     Cloud Dark Matter Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#cloud-dark-matter-dataset
#     Plotting Point Clouds https://docs.pyvista.org/examples/02-plot/point_clouds.html#point-clouds-example
#     More details on how to plot point clouds.

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

