Plotter.background_color#
- property Plotter.background_color: Color[source]#
Return the background color of the active render window.
Examples#
Download Python source code | Download Jupyter notebook
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()
Used In#
Guides
- Lights (1 use)
Docstring Examples
Camera.tight(1 use)Plotter.add_radio_button_widget(1 use)Plotter.add_title(1 use)Plotter.enable_depth_of_field(1 use)Plotter.remove_chart(1 use)5 more
Plotter.set_background(1 use)Renderer.enable_depth_of_field(1 use)Renderer.remove_chart(1 use)WidgetComponent.add_radio_button_widget(1 use)download_lucy(1 use)
Gallery Examples