# Examples from pyvista.Plotter.set_background
# ============================================

# Set the background color to black.
import pyvista as pv
pl = pv.Plotter()
pl.set_background('black')
pl.background_color
pl.close()

# Set the background color at the bottom to black and white at
# the top.  Display a cone as well.
import pyvista as pv
pl = pv.Plotter()
actor = pl.add_mesh(pv.Cone())
pl.set_background('black', top='white')
pl.show()

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

