pyvista.Texture.plot

Contents

pyvista.Texture.plot#

Texture.plot(**kwargs)[source]#

Plot the texture as an image.

If the texture is a cubemap, it will be displayed as a skybox with a sphere in the center reflecting the environment.

Parameters:
**kwargsdict, optional

Optional keyworld arguments. See pyvista.plot().

Returns:
various or None

See the returns section of pyvista.plot().

Examples

Plot a simple texture.

>>> from pyvista import examples
>>> texture = examples.download_masonry_texture()
>>> texture.plot()
../../../_images/pyvista-Texture-plot-1_00_00.png

Plot a cubemap as a skybox.

>>> cube_map = examples.download_dikhololo_night()
>>> cube_map.plot()
../../../_images/pyvista-Texture-plot-1_01_00.png