background_color

property ChartBox.background_color

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()
../../../../_images/pyvista-ChartBox-background_color-1_00_00.png