pyvista.Plotter.view_xy#

Plotter.view_xy(negative=False, render=True)[source]#

View the XY plane.

Parameters:
negativebool, default: False

View from the opposite direction.

renderbool, default: True

If the render window is being shown, trigger a render after setting the camera position.

Examples

View the XY plane of a built-in mesh example.

>>> from pyvista import examples
>>> import pyvista as pv
>>> airplane = examples.load_airplane()
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(airplane)
>>> pl.view_xy()
>>> pl.show()
https://d33wubrfki0l68.cloudfront.net/d8c19f5bf21013d7c93bab705182644ced12bc80/2b04b/_images/pyvista-plotter-view_xy-1_00_00.png