# Examples from pyvista.DataSet.active_scalars_info
# =================================================

# Create a mesh, add scalars to the mesh, and return the active
# scalars info.  Note how when the scalars are added, they
# automatically become the active scalars.
import pyvista as pv
mesh = pv.Sphere()
mesh['Z Height'] = mesh.points[:, 2]
mesh.active_scalars_info

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

