ChartMPL.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])
>>> chart.background_texture = examples.download_emoji_texture()
>>> chart.show(interactive=False)