pyvista.Plotter.clear#

Plotter.clear()[source]#

Clear plot by removing all actors and properties.

Examples

>>> import pyvista
>>> plotter = pyvista.Plotter()
>>> actor = plotter.add_mesh(pyvista.Sphere())
>>> plotter.clear()
>>> plotter.renderer.actors
{}
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/90429/_images/pyvista-plotter-clear-1_00_00.png