pyvista.examples.downloads.download_gif_simple#

download_gif_simple(load=True)[source]#

Download a simple three frame GIF.

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

Download and plot the first frame of a simple GIF.

>>> from pyvista import examples
>>> grid = examples.download_gif_simple()
>>> grid.plot(
...     scalars='frame0',
...     rgb=True,
...     background='w',
...     show_scalar_bar=False,
...     cpos='xy',
... )
../../../_images/pyvista-examples-downloads-download_gif_simple-1_00_00.png

Plot the second frame.

>>> grid.plot(
...     scalars='frame1',
...     rgb=True,
...     background='w',
...     show_scalar_bar=False,
...     cpos='xy',
... )
../../../_images/pyvista-examples-downloads-download_gif_simple-1_01_00.png

See also

Gif Simple Dataset

See this dataset in the Dataset Gallery for more info.