pyvista.ChartMPL.background_color#

property ChartMPL.background_color[ソース]#

チャートの背景色を返すか設定します.

緑の背景のmatplotlibチャートを作成します.

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