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()
https://d33wubrfki0l68.cloudfront.net/d8f9019b72c83b60e865a9c2212628d498a6810b/5665c/_images/pyvista-texture-plot-1_00_00.png

Plot a cubemap as a skybox.

>>> cube_map = examples.download_dikhololo_night()
>>> cube_map.plot()
https://d33wubrfki0l68.cloudfront.net/46ec19bea1c64681f6e410115e79659ab3f33dce/328c5/_images/pyvista-texture-plot-1_01_00.png