pyvista.examples.examples#

Built-in examples that ship with PyVista and do not need to be downloaded.

Examples#

>>> from pyvista import examples
>>> mesh = examples.load_ant()
>>> mesh.plot()

Functions

load_airplane()

Load ply airplane mesh.

load_ant()

Load ply ant mesh.

load_channels()

Load a uniform grid of fluvial channels in the subsurface.

load_explicit_structured([dimensions, spacing])

Load a simple explicit structured grid.

load_frog_tissues()

Load frog tissues dataset.

load_globe()

Load a globe source.

load_globe_texture()

Load a pyvista.Texture that can be applied to the globe source.

load_hexbeam()

Load a sample UnstructuredGrid.

load_hydrogen_orbital([n, l, m, zoom_fac])

Load the hydrogen wave function for a pyvista.ImageData.

load_logo()

Load the PyVista logo as a pyvista.ImageData.

load_nut()

Load an example nut mesh.

load_random_hills()

Create random hills toy example.

load_rectilinear()

Load a sample uniform grid.

load_sphere()

Load sphere ply mesh.

load_sphere_vectors()

Create example sphere with a swirly vector field defined on nodes.

load_spline()

Load an example spline mesh.

load_structured()

Load a simple StructuredGrid.

load_tetbeam()

Load a sample UnstructuredGrid containing only tetrahedral cells.

load_uniform()

Load a sample uniform grid.