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/2f9a175c2a47ee9b0d1fba92eb3f92e8b9405a5d/ec3f2/_images/pyvista-texture-plot-1_01_00.png