pyvista.Actor.visibility#

property Actor.visibility: bool[source]#

Return or set actor visibility.

Examples

Create an actor using the pyvista.Plotter and then change the visibility of the actor.

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(pv.Sphere())
>>> actor.visibility = False
>>> actor.visibility
False
../../../_images/pyvista-Actor-visibility-1_00_00.png