# Examples from pyvista.DataSetFilters.warp_by_scalar
# ===================================================

# First, plot the un-warped mesh.
from pyvista import examples
mesh = examples.download_st_helens()
mesh.plot(cmap='gist_earth', show_scalar_bar=False)

# Now, warp the mesh by the `'Elevation'` scalars.
warped = mesh.warp_by_scalar('Elevation')
warped.plot(cmap='gist_earth', show_scalar_bar=False)

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