Plotter.render

Contents

Plotter.render#

Plotter.render() None[source]#

Render the main window.

Will not render until show has been called.

Any render callbacks added with add_on_render_callback() and the render_event=False option set will still execute on any call.

Examples#

Download Python source code | Download Jupyter notebook

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)