pyvista.examples.downloads.download_armadillo

pyvista.examples.downloads.download_armadillo#

download_armadillo(load=True)[source]#

Download armadillo 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.PolyData | str

DataSet or filename depending on load.

Examples

Plot the armadillo dataset. Use a custom camera position.

>>> from pyvista import examples
>>> cpos = [
...     (161.5, 82.1, -330.2),
...     (-4.3, 24.5, -1.6),
...     (-0.1, 1, 0.12),
... ]
>>> dataset = examples.download_armadillo()
>>> dataset.plot(cpos=cpos)
../../../_images/pyvista-examples-downloads-download_armadillo-1_00_00.png

See also

Armadillo Dataset

See this dataset in the Dataset Gallery for more info.