download_head#
- download_head(load=True)[source]#
Download head dataset.
- Parameters
- loadbool,
optional
Load the dataset after downloading it when
True
. Set this toFalse
and only the filename will be returned.
- loadbool,
- Returns
pyvista.UniformGrid
orstr
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()
See Volume Rendering for an example using this dataset.