pyvista.Chart2D.background_texture#

property Chart2D.background_texture[source]#

Return or set the chart’s background texture.

Examples

Create a 2D chart with an emoji as its background.

>>> import pyvista as pv
>>> from pyvista import examples
>>> chart = pv.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.background_texture = examples.download_emoji_texture()
>>> chart.show(interactive=False)
../../../../_images/pyvista-Chart2D-background_texture-2_00_00.png