pyvista.Plotter.add_on_render_callback

pyvista.Plotter.add_on_render_callback#

Plotter.add_on_render_callback(callback, render_event=False) None[source]#

Add a method to be called post-render.

Parameters:
callbackcallable()

The callback method to run post-render. This takes a single argument which is the plotter object.

render_eventbool, default: False

If True, associate with all VTK RenderEvents. Otherwise, the callback is only handled on a successful render() from the PyVista plotter directly.