# Examples from pyvista.Transform.rotate_x
# ========================================

# Compose a rotation about the x-axis.
import pyvista as pv
transform = pv.Transform().rotate_x(90)
transform.matrix

# Compose a second rotation about the x-axis.
_ = transform.rotate_x(45)

# The result is a matrix that rotates about the x-axis by 135 degrees.
transform.matrix

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

