pyvista.Plotter.remove_floors

pyvista.Plotter.remove_floors#

Plotter.remove_floors(clear_kwargs=True, render=True) None[source]#

Remove all floor actors.

Parameters:
clear_kwargsbool, default: True

Clear default floor arguments.

renderbool, default: True

Render upon removing the floor.

Examples

Add a floor below a sphere, remove it, and then plot it.

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(pv.Sphere())
>>> actor = pl.add_floor()
>>> pl.remove_floors()
>>> pl.show()
../../../_images/pyvista-Plotter-remove_floors-1_00_00.png