set_viewup#

Plotter.set_viewup(vector, reset=True)#

Set camera viewup vector.

Parameters
vectorsequence

New 3 value camera viewup vector.

resetbool, optional

Whether to reset the camera after setting the camera position.

Examples

Look from the top down by setting view up to [0, 1, 0]. Notice how the Y axis appears vertical.

>>> from pyvista import demos
>>> pl = demos.orientation_plotter()
>>> pl.set_viewup([0, 1, 0])
>>> pl.show()
../../../_images/pyvista-Plotter-set_viewup-1_00_00.png