ChartMPL.background_texture

ChartMPL.background_texture#

property ChartMPL.background_texture: Texture | None[source]#

Return or set the chart’s background texture.

Examples#

Download Python source code | Download Jupyter notebook

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])
../../../../_images/pyvista-ChartMPL-background_texture-92bf37a0cc48a1ea_01_00.png