pyvista.Plotter.background_color#

property Plotter.background_color[source]#

Return the background color of the active render window.

Examples

Set the background color to "pink" and plot it.

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(pv.Cube(), show_edges=True)
>>> pl.background_color = "pink"
>>> pl.background_color
Color(name='pink', hex='#ffc0cbff', opacity=255)
>>> pl.show()
https://d33wubrfki0l68.cloudfront.net/2ff46072343d01857cc0d3f67cca776236375d90/16c7b/_images/pyvista-plotter-background_color-1_00_00.png