# Examples from pyvista.ChartMPL.active_background_color
# ======================================================

# Create a matplotlib chart with a green background.
import pyvista as pv
chart = pv.ChartMPL()

chart.background_color = (0.5, 0.9, 0.5)
chart.show(interactive=False)

# Set the active background color to blue and activate the chart.
chart.active_background_color = 'b'
chart.show(interactive=True)

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

