pyvista.Chart2D.background_color#

property Chart2D.background_color[ソース]#

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

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

>>> import pyvista as pv
>>> chart = pv.Chart2D()
>>> plot = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.background_color = (0.5, 0.9, 0.5)
>>> chart.show(interactive=False)
../../../../_images/pyvista-Chart2D-background_color-1_00_00.png