pyvista.Plotter.clear#

Plotter.clear()[source]#

Clear plot by removing all actors and properties.

Examples

>>> import pyvista as pv
>>> plotter = pv.Plotter()
>>> actor = plotter.add_mesh(pv.Sphere())
>>> plotter.clear()
>>> plotter.renderer.actors
{}
../../../_images/pyvista-Plotter-clear-1_00_00.png