pyvista.GIFReader#

class GIFReader(*args, **kwargs)[source]#

GIFReader for .gif files.

Parameters
pathstr

Path of the GIF to read.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_gif_simple(load=False)
>>> filename.split("/")[-1]  # omit the path
'sample.gif'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(rgba=True, zoom='tight', border=True, border_width=2)
../../../_images/pyvista-GIFReader-1_00_00.png

Methods

GIFReader.hide_progress()

Hide the progress bar when loading the file.

GIFReader.read()

Read data in file.

GIFReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

GIFReader.path

Return or set the filename or directory of the reader.

GIFReader.reader

Return the vtk Reader object.