# Examples from pyvista.Transform.rotate_z
# ========================================

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

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

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

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

