pyvista.ChartBox.background_color#

property ChartBox.background_color[source]#

Return or set the chart’s background color.

Examples

Create a boxplot chart with a green background.

>>> import pyvista
>>> chart = pyvista.ChartBox([[0, 1, 1, 2, 3, 3, 4]])
>>> chart.background_color = (0.5, 0.9, 0.5)
>>> chart.show(interactive=False)
https://d33wubrfki0l68.cloudfront.net/6bf58b33cc5ceeab3006970678744b9923218ec5/4a10d/_images/pyvista-chartbox-background_color-1_00_00.png