background_color#

property ChartMPL.background_color#

Return or set the chart’s background color.

Examples

Create a matplotlib chart with a green background.

>>> import pyvista
>>> chart = pyvista.ChartMPL()
>>> plots = chart.figure.axes[0].plot([0, 1, 2], [2, 1, 3])
>>> chart.background_color = (0.5, 0.9, 0.5)
>>> chart.show()
../../../../_images/pyvista-ChartMPL-background_color-1_01_00.png