DataSet.active_scalars_name#
Examples#
Download Python source code | Download Jupyter notebook
Create a mesh, add scalars to the mesh, and return the name of the active scalars.
>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh['Z Height'] = mesh.points[:, 2]
>>> mesh.active_scalars_name
'Z Height'
Used In#
API Examples
Renderer.set_color_cycler(1 use)
Gallery Examples