download_head#

download_head(load=True)[source]#

Download head dataset.

Parameters:
loadbool, optional

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

Returns:
pyvista.UniformGrid or str

DataSet or filename depending on load.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> dataset = examples.download_head()
>>> pl = pyvista.Plotter()
>>> _ = pl.add_volume(dataset, cmap="cool", opacity="sigmoid_6")
>>> pl.camera_position = [
...     (-228.0, -418.0, -158.0),
...     (94.0, 122.0, 82.0),
...     (-0.2, -0.3, 0.9)
... ]
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_head-1_00_00.png

See Volume Rendering for an example using this dataset.