download_shark

download_shark#

download_shark(load: bool = True) PolyData | str[source]#

Download shark 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:
outputpyvista.PolyData | str

DataSet or filename depending on load.

Examples#

Download Python source code | Download Jupyter notebook

>>> from pyvista import examples
>>> import pyvista as pv
>>> cpos = pv.CameraPosition(
...     position=(-232.0, -33.93, 129.8),
...     focal_point=(-8.71, 0.19, -11.74),
...     viewup=(-0.14, 0.99, 0.02),
... )
>>> dataset = examples.download_shark()
>>> dataset.plot(cpos=cpos, smooth_shading=True)
../../../_images/pyvista-examples-downloads-download_shark-770623a6bd1fc03a_00_00.png

See Also#

Shark Dataset

See this dataset in the Dataset Gallery for more info.

Great White Shark Dataset

Similar dataset.

Grey Nurse Shark Dataset

Similar dataset.