pyvista.Renderer.set_focus#

Renderer.set_focus(point)[source]#

Set focus to a point.

Parameters:
pointsequence[float]

Cartesian point to focus on in the form of [x, y, z].

Examples

>>> import pyvista
>>> mesh = pyvista.Cube()
>>> pl = pyvista.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()
https://d33wubrfki0l68.cloudfront.net/d27e85a1ceba5d4b448e96fba14f455404e86a32/9da68/_images/pyvista-renderer-set_focus-1_00_00.png