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
>>> import pyvista as pv
>>> cpos = pv.CameraPosition(
...     position=(161.5, 82.1, -330.2),
...     focal_point=(-4.3, 24.5, -1.6),
...     viewup=(-0.1, 1, 0.12),
... )
>>> dataset = examples.download_armadillo()
>>> dataset.plot(cpos=cpos)
../../../_images/pyvista-examples-downloads-download_armadillo-88cb924bc38fed27_00_00.png

See also

Armadillo Dataset

See this dataset in the Dataset Gallery for more info.