pyvista.ChartBox.background_texture#

property ChartBox.background_texture[source]#

Return or set the chart’s background texture.

Examples

Create a boxplot chart with an emoji as its background.

>>> import pyvista as pv
>>> from pyvista import examples
>>> chart = pv.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> chart.background_texture = examples.download_emoji_texture()
>>> chart.show(interactive=False)
https://d33wubrfki0l68.cloudfront.net/0441f11a92932c8b7c2824faf20081db845c85b4/b8edf/_images/pyvista-chartbox-background_texture-2_00_00.png