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)
https://d33wubrfki0l68.cloudfront.net/92f87bdd3aa30e15f4fc3549647ecb0800fddf35/23319/_images/pyvista-chartmpl-background_texture-2_01_00.png