background_texture#

property ChartMPL.background_texture#

Return or set the chart’s background texture.

Examples

Create a matplotlib chart with an emoji as its background.

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