reservoirflow.utils.pyvista.align_camera#
- reservoirflow.utils.pyvista.align_camera(pl: Plotter, cdir: str = 'xz', azimuth: float = 30, elevation: float = 30, zoom: float = 1.3) None #
Align the camera for a pyvista plotter.
- Parameters:
pl (pv.Plotter) – plotter object from pyvista.
cdir (str, optional) – plotter camera direction.
azimuth (float, optional) – adjust camera azimuth which is a horizontal rotation around the central focal point, see pyvista.Camera.
elevation (float, optional) –
adjust camera elevation which is a vertical rotation around the central focal point, see pyvista.Camera.
zoom (float, optional) –
adjust camera azimuth which is a horizontal rotation around the central focal point, see pyvista.Camera.