# Examples from pyvista.Plotter.set_focus
# =======================================

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()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

