pyvista.examples.downloads.download_brain#

download_brain(load=True)[source]#

Download brain dataset.

Parameters:
loadbool, default: True

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

Returns:
pyvista.ImageData | str

DataSet or filename depending on load.

Examples

>>> from pyvista import examples
>>> dataset = examples.download_brain()
>>> dataset.plot(volume=True)
../../../_images/pyvista-examples-downloads-download_brain-1_00_00.png

This dataset is used in the following examples: