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 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()
https://d33wubrfki0l68.cloudfront.net/c13a93d32cb60810986e3c88a8fa966666007602/3e47d/_images/pyvista-renderer-set_focus-1_00_00.png