pyvista.Renderer.set_focus#
- Renderer.set_focus(point) None [source]#
Set focus to a point.
Examples
>>> import pyvista as pv >>> mesh = pv.Cube() >>> pl = pv.Plotter() >>> _ = pl.add_mesh(mesh, show_edges=True) >>> _ = pl.add_point_labels([mesh.points[1]], ["Focus"]) >>> _ = pl.camera # this initializes the camera >>> pl.set_focus(mesh.points[1]) >>> pl.show()