pyvista.Actor.visibility#
- property Actor.visibility: bool[source]#
Return or set actor visibility.
See also
Examples
Create an actor using the
pyvista.Plotter
and then change the visibility of the actor.>>> import pyvista as pv >>> from pyvista import examples >>> mesh = examples.load_airplane() >>> pl = pv.Plotter() >>> actor = pl.add_mesh(mesh) >>> pl.bounds BoundsTuple(x_min = 139.06100463867188, x_max = 1654.9300537109375, y_min = 32.09429931640625, y_max = 1319.949951171875, z_min = -17.741199493408203, z_max = 282.1300048828125)
>>> actor.visibility = False >>> pl.bounds BoundsTuple(x_min = -1.0, x_max = 1.0, y_min = -1.0, y_max = 1.0, z_min = -1.0, z_max = 1.0)