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
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/998b4/_images/pyvista-actor-visibility-1_00_00.png