pyvista.ChartMPL.background_texture#

property ChartMPL.background_texture[source]#

Return or set the chart’s background texture.

Examples

Create a matplotlib chart with an emoji as its background.

>>> import pyvista as pv
>>> from pyvista import examples
>>> chart = pv.ChartMPL()
>>> plots = chart.figure.axes[0].plot([0, 1, 2], [2, 1, 3])
>>> chart.background_texture = examples.download_emoji_texture()
>>> chart.show(interactive=False)
../../../../_images/pyvista-ChartMPL-background_texture-2_01_00.png