# Examples from pyvista.DataObjectFilters.elevation
# =================================================

# Generate the "elevation" scalars for a sphere mesh.  This is
# simply the height in Z from the XY plane.
import pyvista as pv
sphere = pv.Sphere()
sphere_elv = sphere.elevation()
sphere_elv.plot(smooth_shading=True)

# Access the first 4 elevation scalars.  This is a point-wise
# array containing the "elevation" of each point.
sphere_elv['Elevation'][:4]

# See Using Common Filters for more examples using this filter.

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

