set_viewup

Plotter.set_viewup(vector)

Set camera viewup vector.

Parameters
vectorsequence

New 3 value camera viewup vector.

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