# Examples from pyvista.Actor
# ===========================

# Create an actor without using `pyvista.Plotter`.
import pyvista as pv
mesh = pv.Sphere()
mapper = pv.DataSetMapper(mesh)
actor = pv.Actor(mapper=mapper)
actor

# Change the actor properties and plot the actor.
import pyvista as pv
mesh = pv.Sphere()
mapper = pv.DataSetMapper(mesh)
actor = pv.Actor(mapper=mapper)
actor.prop.color = 'blue'
actor.plot()

# Create an actor using the `pyvista.Plotter` and then change the
# visibility of the actor.
import pyvista as pv
pl = pv.Plotter()
mesh = pv.Sphere()
actor = pl.add_mesh(mesh)
actor.visibility = False
actor.visibility

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

