pyvista.examples.downloads.download_warping_spheres

pyvista.examples.downloads.download_warping_spheres#

download_warping_spheres(*, load=True)[source]#

Download warping spheres dataset.

Added in version 0.47.0.

Parameters:
loadbool, default: True

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

Returns:
outputPartitionedDataSet | str

Data object or filename depending on load.

Examples

Load the warping spheres and plot them.

>>> from pyvista import examples
>>> import pyvista as pv
>>> partitioned = examples.download_warping_spheres()
>>> cpos = pv.CameraPosition(
...     position=(70.0, -70.0, 0.0),
...     focal_point=(7.0, 7.0, 7.0),
...     viewup=(0.0, 0.0, 1.0),
... )
>>> partitioned.plot(cpos=cpos)
../../../_images/pyvista-examples-downloads-download_warping_spheres-69c0d12ce185b1a6_00_00.png

See also

Warping Spheres Dataset

See this dataset in the Dataset Gallery for more info.