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

import pyvista as pv
from pyvista import examples
dataset = examples.download_head()
pl = pv.Plotter()
_ = pl.add_volume(dataset, cmap='cool', opacity='sigmoid_6')
pl.camera_position = pv.CameraPosition(
    position=(-228.0, -418.0, -158.0),
    focal_point=(94.0, 122.0, 82.0),
    viewup=(-0.2, -0.3, 0.9),
)
pl.show()

# SEE ALSO:
#     Head Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#head-dataset
#     See this dataset in the Dataset Gallery for more info.
#     Head 2 Dataset https://docs.pyvista.org/api/examples/dataset_gallery.html#head-2-dataset
#     Medical Datasets https://docs.pyvista.org/api/examples/dataset_gallery.html#medical-dataset-gallery
#     Browse other medical datasets.
#     Volume Rendering https://docs.pyvista.org/examples/02-plot/volume_rendering.html#volume-rendering-example
#     Example using this dataset.

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

