pyvista.ChartBox.active_background_color#

property ChartBox.active_background_color[source]#

Return or set the chart’s background color in interactive mode.

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/44183/_images/pyvista-chartbox-active_background_color-1_00_00.png

Set the active background color to blue and activate the chart.

>>> chart.active_background_color = 'b'
>>> chart.show(interactive=True)
https://d33wubrfki0l68.cloudfront.net/c107194b50fa53e54366cb5e18be59b61719c301/9b3b3/_images/pyvista-chartbox-active_background_color-1_01_00.png