pyvista.Prop3D.rotate_y#

Prop3D.rotate_y(angle: float)[source]#

Rotate the entity about the y axis.

Parameters:
anglefloat

Angle to rotate the entity about the y axis in degrees.

Examples

Rotate the actor about the y axis 45 degrees. Note how this does not change the location of the underlying dataset.

>>> import pyvista as pv
>>> mesh = pv.Cube()
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(mesh, color='b')
>>> actor = pl.add_mesh(
...     mesh,
...     color='r',
...     style='wireframe',
...     line_width=5,
...     lighting=False,
... )
>>> actor.rotate_y(45)
>>> pl.show_axes()
>>> pl.show()
../../../_images/pyvista-Prop3D-rotate_y-1_00_00.png