pyvista.Plotter.clear

Contents

pyvista.Plotter.clear#

Plotter.clear() None[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
{}