# Examples from pyvista.Plotter.render
# ====================================

# Render scene changes while keeping the plotter open.
import pyvista as pv
pl = pv.Plotter()
mesh = pv.Sphere()
_ = pl.add_mesh(mesh)
text_actor = pl.add_text("Pressing 'q' will shrink the sphere")
pl.show(auto_close=False)
mesh.points *= 0.5
pl.remove_actor(text_actor)
pl.show(auto_close=True)

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

